git-hooks

Git hooks for my repositories
git clone https://git.tronto.net/git-hooks
Download | Log | Files | Refs | README

commit fbea748c39fdc346612e7b4f18d3518f55cc8424
parent 6ed532078680a6735811aa40a3b41c2a77c0da42
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sun,  7 May 2023 22:17:35 +0200

Fixes

Diffstat:
MMakefile | 3++-
Acopy-hook | 6++++++
Mpost-receive-stagit | 6++++--
3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,8 +3,9 @@ all: push push: ssh git@tronto.net mkdir -p BIN FILES - scp post-receive-stagit git@tronto.net:BIN/ + scp post-receive-stagit copy-hook git@tronto.net:BIN/ scp bottom.html favicon.png logo.png style.css git@tronto.net:FILES/ + ssh git@tronto.net /home/git/BIN/copy-hook index: push ssh git@tronto.net /home/git/BIN/post-receive-stagit index diff --git a/copy-hook b/copy-hook @@ -0,0 +1,6 @@ +#!/bin/sh + +for d in *.git; do + cp BIN/post-receive-stagit $d/hooks/ + chmod +x $d/hooks/post-receive-stagit +done diff --git a/post-receive-stagit b/post-receive-stagit @@ -80,6 +80,7 @@ mkpage() { adddownloadbutton $f addbottombar $f done + mkindex } mkindex() { @@ -98,7 +99,8 @@ if [ "$1" = "all" ]; then $bindir/post-receive-stagit cd done -elif [ "$1" != "index" ]; then +elif [ "$1" = "index" ]; then + mkindex +else mkpage fi -mkindex