[pulseaudio-commits] bootstrap.sh

Tanu Kaskinen tanuk at kemper.freedesktop.org
Sat Jul 21 00:03:54 PDT 2012


 bootstrap.sh |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit abeb68dcf265a0fc9fd8d3f6997fe219625934cd
Author: Tanu Kaskinen <tanuk at iki.fi>
Date:   Sat Jul 21 10:03:08 2012 +0300

    bootstrap: Enable the pre-commit hook.

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



More information about the pulseaudio-commits mailing list