git-pre-commit-hook 129 Bytes
Newer Older
1
GITVERSION_FILE=src/gitversion.h
2 3 4
echo -n "#define GIT_VERSION " > $GITVERSION_FILE
echo \"`git describe`\" >> $GITVERSION_FILE

Simon Morlat's avatar
Simon Morlat committed
5