diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-11-20 23:46:57 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-11-20 23:46:57 +0100 |
| commit | 03a68c82408cda204df37a05909fb841a5e9137f (patch) | |
| tree | 679f7382482ae69dd6a38464adc2cc3454239944 /post-receive-stagit | |
| parent | 52b0be81663df26b56002533ec93f8008db04d1a (diff) | |
| download | git-hooks-03a68c82408cda204df37a05909fb841a5e9137f.tar.gz git-hooks-03a68c82408cda204df37a05909fb841a5e9137f.zip | |
Some updates
Diffstat (limited to '')
| -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 | ||
