summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-01-05 19:22:03 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-01-05 19:22:03 +0100
commit9fbe27d9d6dc6e4530ce904d35c74326e415e34e (patch)
treea30039f997c681a178a45d3ac5482b898b03172a
parent1495719024cae87fd42167ec77691ebb64ba20d7 (diff)
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 fdbff66c48..582a8a3af4 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,6 +2,12 @@
set -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
+
gtkdocize
autoreconf --install --symlink