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

@@ -9,7 +9,9 @@ mklink /D "pcre" "%PCRE_DIR%"
cd "%PCRE_DIR%"
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
NMAKE
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
cd "%WORK%"
copy /y "%WORK_DIR%\%PCRE_DIR%\pcre.dll" "%OUTPUT_DIR%"
@@ -22,5 +24,9 @@ echo "a"
@echo File not found: "%SOURCE_DIR%\%PCRE%"
@goto failed
:build_failed
@echo Problems during the building phase
@goto failed
:failed
@exit /B 1