aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-01-05 19:23:21 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-01-05 19:23:21 +0100
commita2a1e36f0908a2537d88c931fc61f7a778ba5254 (patch)
treef734a7044bef12e9bd74c6f21d2086b2c53a6e6c
parent8ad3f46a9f1a84fdbcfc580bed3584bdfbe6657e (diff)
downloadlibabc-a2a1e36f0908a2537d88c931fc61f7a778ba5254.tar.gz
autogen.sh: enable git pre-commit
-rwxr-xr-xautogen.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 5c6bad3..d507bce 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,11 @@
#!/bin/sh -e
+if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
+ cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
+ chmod +x .git/hooks/pre-commit && \
+ echo "Activated pre-commit hook."
+fi
+
autoreconf --install --symlink
libdir() {