summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2012-07-21 10:03:08 +0300
committerTanu Kaskinen <tanuk@iki.fi>2012-07-21 10:03:08 +0300
commitabeb68dcf265a0fc9fd8d3f6997fe219625934cd (patch)
tree26aa25aaee8a90eefcc783a9aab36ea7ffcd9a93
parent241b23cc839658a8f683ad10581a02707a534ad1 (diff)
bootstrap: Enable the pre-commit hook.
-rwxr-xr-xbootstrap.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 7de732d..c043bc0 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -41,6 +41,12 @@ run_versioned() {
set -ex
+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
+
if [ "x$1" = "xam" ] ; then
run_versioned automake "$VERSION" -a -c --foreign
./config.status