mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
iss: Better err handling in build scripts.
Now checking for errors in every step of the build phase
This commit is contained in:
committed by
Felipe Zimmerle
parent
e25c6b2e85
commit
192599bf63
@@ -11,7 +11,9 @@ mklink /D "libxml2" "%LIBXML2_DIR%"
|
||||
fart.exe -r -i -C "%WORK_DIR%\%LIBXML2_DIR%\win32\*.*" \x2Fopt:nowin98 " "
|
||||
cd "%LIBXML2_DIR%\win32"
|
||||
CSCRIPT configure.js iconv=no vcmanifest=yes zlib=yes
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||
NMAKE -f Makefile.msvc
|
||||
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||
|
||||
cd "%WORK%"
|
||||
|
||||
@@ -24,6 +26,10 @@ copy /y "%WORK_DIR%\%LIBXML2_DIR%\win32\bin.msvc\libxml2.lib" "%OUTPUT_DIR%"
|
||||
@echo File not found: "%SOURCE_DIR%\%LIBXML2%"
|
||||
@goto failed
|
||||
|
||||
:build_failed
|
||||
@echo Problems during the building phase
|
||||
@goto failed
|
||||
|
||||
:failed
|
||||
@exit /B 1
|
||||
|
||||
|
Reference in New Issue
Block a user