aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rwxr-xr-xcopy-hook6
-rwxr-xr-xpost-receive-stagit6
3 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0472ee4..8dc9a8f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,9 @@ all: push
3 3
4push: 4push:
5 ssh git@tronto.net mkdir -p BIN FILES 5 ssh git@tronto.net mkdir -p BIN FILES
6 scp post-receive-stagit git@tronto.net:BIN/ 6 scp post-receive-stagit copy-hook git@tronto.net:BIN/
7 scp bottom.html favicon.png logo.png style.css git@tronto.net:FILES/ 7 scp bottom.html favicon.png logo.png style.css git@tronto.net:FILES/
8 ssh git@tronto.net /home/git/BIN/copy-hook
8 9
9index: push 10index: push
10 ssh git@tronto.net /home/git/BIN/post-receive-stagit index 11 ssh git@tronto.net /home/git/BIN/post-receive-stagit index
diff --git a/copy-hook b/copy-hook
new file mode 100755
index 0000000..a88a58d
--- /dev/null
+++ b/copy-hook
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3for d in *.git; do
4 cp BIN/post-receive-stagit $d/hooks/
5 chmod +x $d/hooks/post-receive-stagit
6done
diff --git a/post-receive-stagit b/post-receive-stagit
index 586a533..57b5732 100755
--- a/post-receive-stagit
+++ b/post-receive-stagit
@@ -80,6 +80,7 @@ mkpage() {
80 adddownloadbutton $f 80 adddownloadbutton $f
81 addbottombar $f 81 addbottombar $f
82 done 82 done
83 mkindex
83} 84}
84 85
85mkindex() { 86mkindex() {
@@ -98,7 +99,8 @@ if [ "$1" = "all" ]; then
98 $bindir/post-receive-stagit 99 $bindir/post-receive-stagit
99 cd 100 cd
100 done 101 done
101elif [ "$1" != "index" ]; then 102elif [ "$1" = "index" ]; then
103 mkindex
104else
102 mkpage 105 mkpage
103fi 106fi
104mkindex

Generated with cgit - Back to sebastiano.tronto.net