diff options
author | kasper93 <kasper93@gmail.com> | 2014-05-03 05:02:33 +0400 |
---|---|---|
committer | kasper93 <kasper93@gmail.com> | 2014-05-12 00:15:20 +0400 |
commit | 14ac5ca933e20dc6808f5985aa961b857ccc00a3 (patch) | |
tree | e25c2ef54fd7ce07acba7b068dbdf0fa4561248d | |
parent | 6c88d4f6c0f8c377601329feae25de13019e08a7 (diff) |
build.bat: Base nightly status on revision number.
-rwxr-xr-x | build.bat | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -492,9 +492,7 @@ FOR /F "tokens=2,3" %%A IN ('FINDSTR /R /C:"define MPC" "include\version_rev.h"' SET "%%A=%%B"
)
-FOR /F "tokens=3" %%A IN ('FINDSTR /R /C:"define MPC_NIGHTLY_RELEASE" "include\version.h"') DO (
- SET "MPCHC_NIGHTLY=%%A"
-)
+IF "%MPC_VERSION_REV%" NEQ "0" (SET "MPCHC_NIGHTLY=1") ELSE (SET "MPCHC_NIGHTLY=0")
SET "MPCHC_HASH=%MPCHC_HASH:~4,-2%"
IF DEFINED MPCHC_BRANCH (
|