aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-12-01 17:13:44 +0000
committerWerner Koch <[email protected]>2011-12-01 17:14:26 +0000
commit29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f (patch)
tree079be1098811474d91891e2cbcfa5e33774dc8b2 /autogen.sh
parentGenerate the ChangeLog from commit logs. (diff)
downloadgnupg-29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f.tar.gz
gnupg-29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f.zip
Add hook to check the commit log syntax.
* autogen.sh: Install commit-msg hook for git.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 8a424bce5..0ec134d69 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -296,6 +296,13 @@ EOF
git config --add filter.cleanpo.clean \
"awk '/^\"POT-Creation-Date:/&&!s{s=1;next};!/^#: /{print}'"
fi
+ if [ -f scripts/git-hooks/commit-msg -a ! -f .git/hooks/commit-msg ] ; then
+ cat <<EOF >&2
+*** Activating commit log message check hook. ***
+EOF
+ cp -av scripts/git-hooks/commit-msg .git/hooks/commit-msg
+ chmod -c +x .git/hooks/commit-msg
+ fi
fi
echo "Running aclocal -I m4 -I gl/m4 ${ACLOCAL_FLAGS:+$ACLOCAL_FLAGS }..."