summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-10-28 23:51:22 +0000
committerStef Walter <stef@memberwebs.com>2009-10-28 23:51:22 +0000
commit5b8f4f1a6cc9fbf525caa385873a0a668705c3cc (patch)
tree8a9caa487173d9b605f1cbc46588dc4d867a097e
parentfc9ee15902d0dc811bb56d65179c93231f05403c (diff)
Setup git hooks properly when a new checkout
-rwxr-xr-xautogen.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 0a713f4..1f7e1eb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,6 +2,14 @@
set -e
+# Some boiler plate to get git setup as expected
+if test -d .git; then
+ if test -f .git/hooks/pre-commit.sample && \
+ test ! -f .git/hooks/pre-commit; then
+ cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
+ fi
+fi
+
aclocal
autoheader
automake -a