Whamcloud - gitweb
LU-1434 utils: Update Makefile to work out of the box
[fs/lustre-release.git] / autogen.sh
index 3920385..1fce0a4 100644 (file)
@@ -1,2 +1,9 @@
 #!/bin/sh
-exec sh build/autogen.sh $@ 
+
+# install Lustre Git commit hooks by default - LU-2083
+for HOOK in commit-msg prepare-commit-msg; do
+       [ -e .git/hooks/$HOOK ] || ln -sf ../build/$HOOK .git/hooks/
+done
+
+exec bash build/autogen.sh $@ 
+