(no commit message)
authorChristian Weiske <cweiske@cweiske.de>
Mon, 31 Dec 2012 10:35:38 +0000 (11:35 +0100)
committerwww-cweiske <www-cweiske@mail.cweiske.de>
Mon, 31 Dec 2012 10:35:38 +0000 (11:35 +0100)
custom-post-receive.sh [new file with mode: 0644]

diff --git a/custom-post-receive.sh b/custom-post-receive.sh
new file mode 100644 (file)
index 0000000..d41a2b4
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh\r
+# run all post-receive.* hooks in custom-hooks/\r
+\r
+if [ ! -d custom-hooks ]; then\r
+    exit\r
+fi\r
+\r
+FILE="`mktemp`"\r
+cat - > "$FILE"\r
+for i in custom-hooks/post-receive.*; do\r
+    [ -x "$i" ] && cat "$FILE" | "$i"\r
+done\r
+rm "$FILE"\r