From 03a68c82408cda204df37a05909fb841a5e9137f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 20 Nov 2022 23:46:57 +0100 Subject: Some updates --- post-receive-stagit | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'post-receive-stagit') 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)" basedir="/var/www/htdocs/git.tronto.net" htdir="$basedir/$name" filesdir="/home/git/FILES" +bindir="/home/git/BIN" setupinfo() { echo "Sebastiano Tronto" > owner @@ -85,5 +86,17 @@ mkindex() { changeindextitlestyle } -mkpage -mkindex +if [ "$1" = "index" ]; then + mkindex +elif [ "$1" = "all" ]; then + for g in *.git; do + cd $g + printf "#!/bin/sh\n\n$bindir/post-receive-stagit\n" >> \ + hooks/post-receive + $bindir/post-receive-stagit + cd + done + mkindex +else + mkpage +fi -- cgit v1.3