diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-09-17 14:22:22 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-09-17 23:11:15 +0400 |
commit | b38aefc1bcc2fc71fd38ce8258c39e49e14648ce (patch) | |
tree | aedae59318d54ab8563b1e1a4b1284a98e774f94 /build.bat | |
parent | 6170fff2e901f44f06bf02eb17aaad3195969d58 (diff) |
batch files: check if the dirs actually exist
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -28,6 +28,11 @@ IF EXIST "build.user.bat" ( IF DEFINED MINGW64 (SET MPCHC_MINGW64=%MINGW64%) ELSE (GOTO MissingVar)
IF DEFINED MSYS (SET MPCHC_MSYS=%MSYS%) ELSE (GOTO MissingVar)
)
+
+IF NOT EXIST %MPCHC_MINGW32% GOTO MissingVar
+IF NOT EXIST %MPCHC_MINGW64% GOTO MissingVar
+IF NOT EXIST %MPCHC_MSYS% GOTO MissingVar
+
IF NOT DEFINED VS100COMNTOOLS GOTO MissingVar
SET ARG=/%*
@@ -448,7 +453,7 @@ ECHO. & ECHO. ECHO Press any key to exit...
PAUSE >NUL
ENDLOCAL
-EXIT /B
+EXIT /B 1
:UnsupportedSwitch
|