chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autogen.sh: enable git pre-commit
[elogind.git]
/
autogen.sh
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
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
gtkdocize
autoreconf --install --symlink