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:
authorKacper Michajłow <kasper93@gmail.com>2015-02-16 18:26:46 +0300
committerKacper Michajłow <kasper93@gmail.com>2015-02-17 01:41:08 +0300
commit3eaa44a8664ed275fa9c5e225c4893635809bdea (patch)
tree12230c99aad8eed3e73896813eca6b49cb407a6e /update_version.bat
parent5882f90c0fa0b1e8ab8891dbdaf42c1234430bf8 (diff)
Add common.bat file with common functions.
Diffstat (limited to 'update_version.bat')
-rwxr-xr-xupdate_version.bat10
1 files changed, 6 insertions, 4 deletions
diff --git a/update_version.bat b/update_version.bat
index 68c07f991..003cb2924 100755
--- a/update_version.bat
+++ b/update_version.bat
@@ -21,14 +21,16 @@ SETLOCAL
PUSHD %~dp0
+SET "COMMON=%~dp0\common.bat"
+
IF EXIST "build.user.bat" CALL "build.user.bat"
IF NOT DEFINED MPCHC_GIT IF DEFINED GIT (SET MPCHC_GIT=%GIT%)
-IF NOT DEFINED MPCHC_MSYS IF DEFINED MSYS (SET MPCHC_MSYS=%MSYS%) ELSE (GOTO MissingVar)
-SET PATH=%MPCHC_MSYS%\bin;%MPCHC_GIT%\cmd;%PATH%
-FOR %%G IN (bash.exe) DO (SET FOUND=%%~$PATH:G)
-IF NOT DEFINED FOUND GOTO MissingVar
+CALL %COMMON% :SubSetPath
+IF %ERRORLEVEL% NEQ 0 GOTO MissingVar
+CALL %COMMON% :SubDoesExist bash.exe
+IF %ERRORLEVEL% NEQ 0 GOTO MissingVar
bash.exe ./version.sh