chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1495719
)
autogen.sh: enable git pre-commit
author
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 5 Jan 2012 18:22:03 +0000
(19:22 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 5 Jan 2012 18:22:03 +0000
(19:22 +0100)
autogen.sh
patch
|
blob
|
history
diff --git
a/autogen.sh
b/autogen.sh
index fdbff66c48b9e675cfe9ff646e22273be223c7c1..582a8a3af495bc6c17d0949cfff141f9eddbad0b 100755
(executable)
--- 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