aboutsummaryrefslogtreecommitdiff
path: root/post-receive-stagit
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-11-20 23:46:57 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2022-11-20 23:46:57 +0100
commit03a68c82408cda204df37a05909fb841a5e9137f (patch)
tree679f7382482ae69dd6a38464adc2cc3454239944 /post-receive-stagit
parent52b0be81663df26b56002533ec93f8008db04d1a (diff)
downloadgit-hooks-03a68c82408cda204df37a05909fb841a5e9137f.tar.gz
git-hooks-03a68c82408cda204df37a05909fb841a5e9137f.zip
Some updates
Diffstat (limited to 'post-receive-stagit')
-rwxr-xr-xpost-receive-stagit17
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)"
5basedir="/var/www/htdocs/git.tronto.net" 5basedir="/var/www/htdocs/git.tronto.net"
6htdir="$basedir/$name" 6htdir="$basedir/$name"
7filesdir="/home/git/FILES" 7filesdir="/home/git/FILES"
8bindir="/home/git/BIN"
8 9
9setupinfo() { 10setupinfo() {
10 echo "Sebastiano Tronto" > owner 11 echo "Sebastiano Tronto" > owner
@@ -85,5 +86,17 @@ mkindex() {
85 changeindextitlestyle 86 changeindextitlestyle
86} 87}
87 88
88mkpage 89if [ "$1" = "index" ]; then
89mkindex 90 mkindex
91elif [ "$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
100else
101 mkpage
102fi

Generated with cgit - Back to sebastiano.tronto.net