iss: Better err handling in build scripts.

Now checking for errors in every step of the build
phase
This commit is contained in:
Felipe \\\"Zimmerle\\\" Costa
2013-11-06 08:49:25 -06:00
committed by Felipe Zimmerle
parent e25c6b2e85
commit 192599bf63
6 changed files with 39 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ mklink /D "zlib" "%ZLIB_DIR%"
cd "%ZLIB_DIR%"
nmake -f win32\Makefile.msc
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
SET INCLUDE=%INCLUDE%;%WORK_DIR%\%ZLIB_DIR%
SET LIB=%LIB%;%WORK_DIR%\%ZLIB_DIR%
cd "%WORK_DIR%"
@@ -25,5 +26,9 @@ copy /y "%WORK_DIR%\%ZLIB_DIR%\zdll.lib" "%OUTPUT_DIR%"
@echo File not found: "%SOURCE_DIR%\%ZLIB%"
@goto failed
:build_failed
@echo Problems during the building phase
@goto failed
:failed
@exit /B 1