Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-09-26 13:06:54 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-09-26 19:55:10 +0400
commit6160acbda0206b80ad92ac4a97ceafc12de5c12b (patch)
tree24844b181448444ed8b84d6cb1a7410c7567ba9f /build.bat
parentdd00fffcdecbd33c9a438e40ce77983cc6af4abf (diff)
add MPCHC_BRANCH and MPCHC_HASH in build.bat /GetVersion
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.bat b/build.bat
index ac59c2ccd..d32900c80 100644
--- a/build.bat
+++ b/build.bat
@@ -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