Get git revision inclusion working on Windows
This commit is contained in:
@@ -52,3 +52,10 @@ if %Config% == "Debug" (
|
|||||||
xcopy "%DllSrcDir%\zlib1.dll" %TargetDir% /s /y /i /d
|
xcopy "%DllSrcDir%\zlib1.dll" %TargetDir% /s /y /i /d
|
||||||
xcopy "%DllSrcDir%\libsndfile-1.dll" %TargetDir% /s /y /i /d
|
xcopy "%DllSrcDir%\libsndfile-1.dll" %TargetDir% /s /y /i /d
|
||||||
xcopy "%DllSrcDir%\openal32.dll" %TargetDir% /s /y /i /d
|
xcopy "%DllSrcDir%\openal32.dll" %TargetDir% /s /y /i /d
|
||||||
|
|
||||||
|
@echo Generating git revision information...
|
||||||
|
|
||||||
|
cd %ResourceDir%\..\src
|
||||||
|
|
||||||
|
rem TODO: Unfortunately this hardcodes the location of bash.
|
||||||
|
c:\bin\Git\bin\bash.exe tools/gitrev.sh
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
REVID=`/opt/local/bin/git rev-parse HEAD`;
|
REVID=`git rev-parse HEAD`;
|
||||||
export FULLTAG=`/opt/local/bin/git tag --sort=v:refname | tail -n1`;
|
export FULLTAG=`git tag --sort=v:refname | tail -n1`;
|
||||||
TAGREV=`/opt/local/bin/git rev-parse $FULLTAG`;
|
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
|
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
|
||||||
|
Reference in New Issue
Block a user