diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-09-26 13:06:54 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-09-26 19:55:10 +0400 |
commit | 6160acbda0206b80ad92ac4a97ceafc12de5c12b (patch) | |
tree | 24844b181448444ed8b84d6cb1a7410c7567ba9f /build.bat | |
parent | dd00fffcdecbd33c9a438e40ce77983cc6af4abf (diff) |
add MPCHC_BRANCH and MPCHC_HASH in build.bat /GetVersion
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -367,8 +367,16 @@ IF NOT EXIST "include\version_rev.h" ( )
FOR /F "tokens=3,4 delims= " %%G IN (
'FINDSTR /I /L /C:"define MPC_VERSION_REV " "include\version_rev.h"') DO (SET "VerRev=%%G")
+FOR /F "tokens=3,4 delims= " %%G IN (
+ 'FINDSTR /I /L /C:"define MPCHC_HASH " "include\version_rev.h"') DO (SET "MPCHC_HASH=%%G")
+FOR /F "tokens=3,4 delims= " %%G IN (
+ 'FINDSTR /I /L /C:"define MPCHC_BRANCH " "include\version_rev.h"') DO (SET "MPCHC_BRANCH=%%G")
SET MPCHC_VER=%VerMajor%.%VerMinor%.%VerPatch%.%VerRev%
+IF NOT "x%MPCHC_BRANCH%" == "x" (
+ SET MPCHC_BRANCH=%MPCHC_BRANCH:~4,-2%
+)
+SET MPCHC_HASH=%MPCHC_HASH:~4,-2%
EXIT /B
|