Show git revision on Blades of Exile title screen and in scenario editor

This commit is contained in:
2015-08-17 12:46:09 -04:00
parent 8c33a0738d
commit 8008ff6dac
6 changed files with 68 additions and 13 deletions

7
src/tools/gitrev.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
REVID=`/opt/local/bin/git rev-parse HEAD`;
export FULLTAG=`/opt/local/bin/git tag --sort=v:refname | tail -n1`;
TAGREV=`/opt/local/bin/git rev-parse $FULLTAG`;
echo -e "\n#define GIT_REVISION \"${REVID:0:7}\"\n#define GIT_TAG \"$FULLTAG\"\n#define GIT_TAG_REVISION \"${TAGREV:0:7}\"\n" > tools/gitrev.hpp