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:
Diffstat (limited to 'build.bat')
-rwxr-xr-xbuild.bat4
1 files changed, 1 insertions, 3 deletions
diff --git a/build.bat b/build.bat
index d84b3e52d..738b0fcca 100755
--- a/build.bat
+++ b/build.bat
@@ -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 (