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." +