diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-08-14 18:29:35 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-08-14 20:36:50 +0400 |
commit | 1285405eb49bf9f9076593e3509adec9ce81ccbd (patch) | |
tree | 5f8524a783e8c214fa94eb2890d93da1f0d8452b /build.bat | |
parent | 2d860086040cdaa6920628ff146f22453a20c66a (diff) |
build.bat: run update_version.bat when running /getversion and version_rev.h isn't present
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -355,6 +355,11 @@ FOR /F "tokens=3,4 delims= " %%G IN ( 'FINDSTR /I /L /C:"define MPC_VERSION_MINOR" "include\version.h"') DO (SET "VerMinor=%%G")
FOR /F "tokens=3,4 delims= " %%G IN (
'FINDSTR /I /L /C:"define MPC_VERSION_PATCH" "include\version.h"') DO (SET "VerPatch=%%G")
+
+IF NOT EXIST "include\version_rev.h" (
+ CALL :SubMsg "WARNING" "version_rev.h isn't present, calling update_version.bat"
+ CALL "update_version.bat"
+)
FOR /F "tokens=3,4 delims= " %%G IN (
'FINDSTR /I /L /C:"define MPC_VERSION_REV " "include\version_rev.h"') DO (SET "VerRev=%%G")
|