Fix batch files exiting prematurely.

This commit is contained in:
/dev/urandom 2018-12-02 18:42:47 +01:00
parent 179f34bd9f
commit 3a1cba1ac3
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E
2 changed files with 5 additions and 5 deletions

View File

@ -3,11 +3,11 @@
cd %~dp0
if exist "%PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsMSBuildCmd.bat" call "%PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsMSBuildCmd.bat"
msbuild /version >NUL 2>NUL
call msbuild /version >NUL 2>NUL
if errorlevel 0 goto:build
if exist "%PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" path %PROGRAMFILES(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;%PATH%
msbuild /version >NUL 2>NUL
call msbuild /version >NUL 2>NUL
if errorlevel 0 goto:build
echo Couldn't find any MSBuild to build this project.
@ -19,6 +19,6 @@ exit /B 1
call generate.bat
set PLATFORM=Win32
set CONFIGURATION=Release
msbuild /nologo /m /v:m %* build\iw4x.sln
call msbuild /nologo /m /v:m %* build\iw4x.sln
endlocal
exit /B %ERRORLEVEL%

View File

@ -1,4 +1,4 @@
@echo off
echo Updating submodules...
git submodule update --init --recursive
tools\premake5 %* vs2017
call git submodule update --init --recursive
call tools\premake5 %* vs2017