summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rwxr-xr-xsetup7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup b/setup
index 4802fb9..e9a1e2a 100755
--- a/setup
+++ b/setup
@@ -43,4 +43,11 @@ esac
ln -s $TOOLS_DIR/AUTHORS .
git config --add svn.authorsfile AUTHORS
+# Make sure we have a proper .version file after checkout / pull
+for hook in post-checout post-merge; do
+ if [ ! -r .git/hooks/$hook ]; then
+ ln -s ../../$TOOLS_DIR/version_hook .git/hooks/$hook
+ fi
+done
+
ln -s $TOOLS_DIR/${name}_gitignore .gitignore