Get git revision inclusion working on Windows

This commit is contained in:
2015-08-19 13:13:36 -04:00
parent a8dd1d3b3a
commit e29e34582f
2 changed files with 10 additions and 3 deletions

View File

@@ -1,7 +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`;
REVID=`git rev-parse HEAD`;
export FULLTAG=`git tag --sort=v:refname | tail -n1`;
TAGREV=`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