blob: ceefc88d8e37b72847ff1a2693283e6debe53d87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/rc
gitdir = /var/git
wwwdir = /var/www/htdocs/src.hhvn.uk
stagit-index $gitdir/* > $wwwdir/index.html
for (repo in $gitdir/*) {
base = `{basename $repo}
echo GEN $base
mkdir -p $wwwdir/$base
cd $wwwdir/$base
stagit -c .cache -u 'https://src.hhvn.uk/'$base $repo
if (!test -e index.html) {
ln -s log.html index.html
}
}
|