diff options
Diffstat (limited to 'post-receive-stagit')
| -rwxr-xr-x | post-receive-stagit | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/post-receive-stagit b/post-receive-stagit index 396eefd..7b5d992 100755 --- a/post-receive-stagit +++ b/post-receive-stagit | |||
| @@ -5,6 +5,7 @@ name="$(basename $repo .git)" | |||
| 5 | basedir="/var/www/htdocs/git.tronto.net" | 5 | basedir="/var/www/htdocs/git.tronto.net" |
| 6 | htdir="$basedir/$name" | 6 | htdir="$basedir/$name" |
| 7 | filesdir="/home/git/FILES" | 7 | filesdir="/home/git/FILES" |
| 8 | bindir="/home/git/BIN" | ||
| 8 | 9 | ||
| 9 | setupinfo() { | 10 | setupinfo() { |
| 10 | echo "Sebastiano Tronto" > owner | 11 | echo "Sebastiano Tronto" > owner |
| @@ -85,5 +86,17 @@ mkindex() { | |||
| 85 | changeindextitlestyle | 86 | changeindextitlestyle |
| 86 | } | 87 | } |
| 87 | 88 | ||
| 88 | mkpage | 89 | if [ "$1" = "index" ]; then |
| 89 | mkindex | 90 | mkindex |
| 91 | elif [ "$1" = "all" ]; then | ||
| 92 | for g in *.git; do | ||
| 93 | cd $g | ||
| 94 | printf "#!/bin/sh\n\n$bindir/post-receive-stagit\n" >> \ | ||
| 95 | hooks/post-receive | ||
| 96 | $bindir/post-receive-stagit | ||
| 97 | cd | ||
| 98 | done | ||
| 99 | mkindex | ||
| 100 | else | ||
| 101 | mkpage | ||
| 102 | fi | ||
