From 9b966bbbf73318c305812f55457822acae4f102a Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 17 Jun 2012 14:39:35 +0200 Subject: [PATCH] Added createhooks shell script that will install git hooks for auto-rebuilding on checkout/commit, make main binaries depend on VERSION file for rebuilding (otherwise version in -v is not updated). --- createhooks.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 createhooks.sh diff --git a/createhooks.sh b/createhooks.sh new file mode 100755 index 00000000..067aafa8 --- /dev/null +++ b/createhooks.sh @@ -0,0 +1,8 @@ +#!/bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +echo -e "#!/bin/bash\n[ -f configure ] && touch configure\n[ -f configure.ac ] && touch configure.ac" > $DIR/.git/hooks/post-commit +echo -e "#!/bin/bash\n[ -f configure ] && touch configure\n[ -f configure.ac ] && touch configure.ac" > $DIR/.git/hooks/post-checkout +chmod +x $DIR/.git/hooks/post-commit +chmod +x $DIR/.git/hooks/post-checkout +echo "Done! The version number should now auto-update whenever you commit or checkout." +