mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Code cosmetics.
Changed to reduce the number of possible fails during Build Bot compilation.
This commit is contained in:
parent
9bf2959c91
commit
7366f35c1d
@ -8,19 +8,24 @@ set CURRENT_DIR=%cd%
|
|||||||
@if NOT (%1) == "" call %1
|
@if NOT (%1) == "" call %1
|
||||||
@if (%ERRORLEVEL%) == (1) goto build_wrong_vcarg
|
@if (%ERRORLEVEL%) == (1) goto build_wrong_vcarg
|
||||||
|
|
||||||
|
@echo Deleting old stuff...
|
||||||
|
@del *.obj *.dll *.lib
|
||||||
|
|
||||||
|
@echo apache2...
|
||||||
cd ..\apache2
|
cd ..\apache2
|
||||||
del *.obj *.dll *.lib
|
del *.obj *.dll *.lib
|
||||||
del libinjection\*.obj libinjection\*.dll libinjection\*.lib
|
del libinjection\*.obj libinjection\*.dll libinjection\*.lib
|
||||||
NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre LIBXML2=..\iis\%DEPENDENCIES_DIR%\libxml2 LUA=..\iis\%DEPENDENCIES_DIR%\lua\src VERSION=VERSION_IIS
|
NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre LIBXML2=..\iis\%DEPENDENCIES_DIR%\libxml2 LUA=..\iis\%DEPENDENCIES_DIR%\lua\src VERSION=VERSION_IIS
|
||||||
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||||
|
|
||||||
|
@echo mlogc...
|
||||||
cd ..\mlogc
|
cd ..\mlogc
|
||||||
del *.obj *.dll *.lib
|
del *.obj *.dll *.lib
|
||||||
nmake -f Makefile.win clean
|
nmake -f Makefile.win clean
|
||||||
nmake -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre CURL=..\iis\%DEPENDENCIES_DIR%\curl VERSION=VERSION_IIS
|
nmake -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre CURL=..\iis\%DEPENDENCIES_DIR%\curl VERSION=VERSION_IIS
|
||||||
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||||
|
|
||||||
|
@echo iis...
|
||||||
cd ..\iis
|
cd ..\iis
|
||||||
del *.obj *.dll *.lib
|
del *.obj *.dll *.lib
|
||||||
nmake -f Makefile.win clean
|
nmake -f Makefile.win clean
|
||||||
@ -29,6 +34,7 @@ NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEP
|
|||||||
|
|
||||||
cd %CURRENT_DIR%
|
cd %CURRENT_DIR%
|
||||||
|
|
||||||
|
@echo Copy...
|
||||||
copy /y ..\mlogc\mlogc.exe %OUTPUT_DIR%
|
copy /y ..\mlogc\mlogc.exe %OUTPUT_DIR%
|
||||||
copy /y ..\iis\modsecurityiis.dll %OUTPUT_DIR%
|
copy /y ..\iis\modsecurityiis.dll %OUTPUT_DIR%
|
||||||
copy /y ..\iis\modsecurityiis.pdb %OUTPUT_DIR%
|
copy /y ..\iis\modsecurityiis.pdb %OUTPUT_DIR%
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
echo "Building release..."
|
||||||
|
|
||||||
set RELEASE_DIR=release
|
set RELEASE_DIR=release
|
||||||
set OUTPUT_DIR=%cd%\dependencies\release_files
|
set OUTPUT_DIR=%cd%\dependencies\release_files
|
||||||
set CURRENT_DIR=%cd%
|
set CURRENT_DIR=%cd%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user