aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/hook_commit.sh
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-19 00:24:16 +0000
committerMichael Scherer <misc@mageia.org>2010-11-19 00:24:16 +0000
commita633966827f68bf3d87a76a7902077699d0e1bed (patch)
tree2ab6cea245797523e0d543981f58da763c54c800 /modules/subversion/templates/hook_commit.sh
parenta521cc97e451034eac7e4aef302a00cbd20876a9 (diff)
downloadpuppet-a633966827f68bf3d87a76a7902077699d0e1bed.tar
puppet-a633966827f68bf3d87a76a7902077699d0e1bed.tar.gz
puppet-a633966827f68bf3d87a76a7902077699d0e1bed.tar.bz2
puppet-a633966827f68bf3d87a76a7902077699d0e1bed.tar.xz
puppet-a633966827f68bf3d87a76a7902077699d0e1bed.zip
- add the generic hook
Diffstat (limited to 'modules/subversion/templates/hook_commit.sh')
-rw-r--r--modules/subversion/templates/hook_commit.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/subversion/templates/hook_commit.sh b/modules/subversion/templates/hook_commit.sh
new file mode 100644
index 00000000..0fdfc3e5
--- /dev/null
+++ b/modules/subversion/templates/hook_commit.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+for script in $0.d/*; do
+ if [ ! -x "$script" ]; then
+ continue
+ fi
+
+ if [[ "$script" == *~ ]]; then
+ continue
+ fi
+
+ $script $@ || exit 1
+done
+