git_refresh.sh (259B)
1 #!/usr/bin/env sh 2 3 set -e 4 5 rm -rf /var/www/htdocs/git/index.html 6 7 cd /git/ 8 for repo in */ ; do 9 mkdir -p /var/www/htdocs/git/"$repo" 10 cd /var/www/htdocs/git/"$repo" 11 stagit /git/"$repo" 12 done 13 14 cd /var/www/htdocs/git/ 15 stagit-index /git/* >> index.html