summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-08-03 16:31:08 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-08-03 16:31:08 +0300
commit01896ce33536f7edef54df7de0649d49d79ae2da (patch)
tree2d59cb3fac2ad0e041aba0a31ece63aa2fe0608a /setup
parent3ab6e3329bcd2150d7398b35cdddc2f49320181f (diff)
install version script to all projects
("all" - asterisk, dahdi-linux, dahdi-tools, libpri ATM. See also PROJ_PAT in version_hack) * Adapt version_hack to also work with other projects - a slightly more complex sed. * Other minor fixes. * Install it (in the setup) by default as a post-checkout and post-merge script, to have .version updated on checkout and on pull.
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