ref: a76da5509d4f84e97c5145fbd7fa2bd933d9645d
dir: /mirror.rc/
#!/bin/rc
webfs
cd /usr/glenda/src/repodir
repos=`{hget http://shithub.us/git/repos.html | grep '<dt><a href=' | sed 's,.*">(.*)</a></dt>,\1,g'}
echo Mirroring $#repos at `{date} >> /sys/log/shithubmirror
for (repo in $repos) {
if (test -d $repo) {
cd $repo
git/pull
cd ../../
}
if not {
git/clone git://shithub.us/$repo $repo
}
}