From c7145ce8f77eea28b43f113697e7c9b6db21773f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Thu, 8 Apr 2010 21:17:12 +0200
Subject: Install pre-commit hook.


diff --git a/BuildTools/Git/Hooks/pre-commit b/BuildTools/Git/Hooks/pre-commit
index 1e3e941..8130ad6 100755
--- a/BuildTools/Git/Hooks/pre-commit
+++ b/BuildTools/Git/Hooks/pre-commit
@@ -10,3 +10,4 @@ echo "Checking copyrights ..."
 if ! BuildTools/Copyrighter.py check-all-copyrights; then
 	echo "Copyright error found. Aborting commit."
 	exit -1
+fi
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 3f441cb..577536f 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -352,6 +352,12 @@ elif env.get("bonjour", False) :
 	bonjour_conf.Finish()
 
 ################################################################################
+# Set up git hooks
+################################################################################
+
+env.Install("#/.git/hooks", Glob("#/BuildTools/Git/Hooks/*"))
+
+################################################################################
 # Project files
 # FIXME: We need to explicitly list the order of libraries here, because of
 # the exported FLAGS. We should put FLAGS in separate SConscript files, and
-- 
cgit v0.10.2-6-g49f6