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).
This commit is contained in:
parent
4bf892d254
commit
9b966bbbf7
1 changed files with 8 additions and 0 deletions
8
createhooks.sh
Executable file
8
createhooks.sh
Executable file
|
@ -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."
|
||||
|
Loading…
Add table
Reference in a new issue