8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Add option to pass REALCLEAN to run_all.bat

This commit is contained in:
Paul Reeves 2020-04-22 16:08:47 +02:00
parent cf2612a699
commit 6648b512cc

View File

@ -3,7 +3,8 @@
:: Reset or clear some variables, as appropriate. :: Reset or clear some variables, as appropriate.
set ERRLEV=0 set ERRLEV=0
set FB_NOCLEAN= set FBBUILD_NOCLEAN=
set FBBUILD_REAL_CLEAN=
set FBBUILD_BUILDTYPE=release set FBBUILD_BUILDTYPE=release
set FBBUILD_INCLUDE_PDB= set FBBUILD_INCLUDE_PDB=
set FBBUILD_MAKE_KITS_ONLY= set FBBUILD_MAKE_KITS_ONLY=
@ -19,7 +20,8 @@ for %%v in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do (
:: Read the command line :: Read the command line
for %%v in ( %* ) do ( for %%v in ( %* ) do (
( if /I "%%v"=="NOCLEAN" (set FB_NOCLEAN=1) ) ( if /I "%%v"=="NOCLEAN" (set FBBUILD_NOCLEAN=1) )
( if /I "%%v"=="REALCLEAN" (set FBBUILD_REAL_CLEAN=REALCLEAN) )
( if /I "%%v"=="DEBUG" (set FBBUILD_BUILDTYPE=debug) ) ( if /I "%%v"=="DEBUG" (set FBBUILD_BUILDTYPE=debug) )
( if /I "%%v"=="PDB" (set FBBUILD_INCLUDE_PDB=1) ) ( if /I "%%v"=="PDB" (set FBBUILD_INCLUDE_PDB=1) )
( if /I "%%v"=="REPACK" (set FBBUILD_MAKE_KITS_ONLY=1) ) ( if /I "%%v"=="REPACK" (set FBBUILD_MAKE_KITS_ONLY=1) )
@ -31,7 +33,7 @@ if defined FBBUILD_MAKE_KITS_ONLY (goto :MAKE_KITS & goto :EOF)
call :SETVCENV call :SETVCENV
:: Go to work :: Go to work
if not defined FB_NOCLEAN (call clean_all) if not defined FBBBUILD_NOCLEAN (call clean_all %FBBUILD_REAL_CLEAN%)
:: We do not support debug builds of icu, so we don't pass %FBBUILD_BUILDTYPE% :: We do not support debug builds of icu, so we don't pass %FBBUILD_BUILDTYPE%
call make_icu call make_icu
if "%ERRLEV%"=="1" goto :END if "%ERRLEV%"=="1" goto :END
@ -56,6 +58,7 @@ call BuildExecutableInstall ISX ZIP EMB %FBBUILD_BUILDTYPE% PDB
popd popd
goto :END goto :END
::---------
:HELP :HELP
@echo. @echo.
@ -63,6 +66,10 @@ goto :END
@echo. @echo.
@echo NOCLEAN - don't run CLEAN_ALL.BAT @echo NOCLEAN - don't run CLEAN_ALL.BAT
@echo. @echo.
@echo REALCLEAN - Run CLEAN_ALL.BAT REALCLEAN
@echo This will do a deeper clean.
@echo Recommended for multi-platform builds
@echo.
@echo DEBUG - Do a DEBUG build (for experienced developers only.) @echo DEBUG - Do a DEBUG build (for experienced developers only.)
@echo This switch is not needed to debug Firebird. @echo This switch is not needed to debug Firebird.
@echo. @echo.
@ -73,6 +80,7 @@ goto :END
@echo JUSTBUILD - Just build - don't create packages. @echo JUSTBUILD - Just build - don't create packages.
@echo. @echo.
@goto :EOF @goto :EOF
::---------
:SETVCENV :SETVCENV