2003-07-03 14:44:36 +02:00
|
|
|
@echo off
|
|
|
|
|
2022-08-08 13:32:53 +02:00
|
|
|
@call setenvvar.bat %*
|
2003-07-05 16:45:43 +02:00
|
|
|
@if errorlevel 1 (goto :END)
|
2020-04-22 16:04:00 +02:00
|
|
|
|
|
|
|
set FB_CLEAN_SHARED=
|
|
|
|
|
|
|
|
:: Read the command line
|
|
|
|
for %%v in ( %* ) do (
|
|
|
|
( if /I "%%v"=="REALCLEAN" (set FB_CLEAN_SHARED=1) )
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 15:25:04 +02:00
|
|
|
@echo Cleaning temporary directories...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_OUTPUT_DIR%" 2>nul
|
|
|
|
@rmdir /S /Q "%FB_TEMP_DIR%" 2>nul
|
2003-07-05 04:20:20 +02:00
|
|
|
|
2007-09-06 15:25:04 +02:00
|
|
|
@echo Cleaning gen...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_GEN_DIR%" 2>nul
|
2007-09-06 15:25:04 +02:00
|
|
|
|
2020-04-22 15:57:32 +02:00
|
|
|
@echo Cleaning icu...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\icu\%FB_TARGET_PLATFORM%\%FBBUILD_BUILDTYPE%" 2>nul
|
2020-04-22 15:57:32 +02:00
|
|
|
|
|
|
|
@echo Cleaning decNumber...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\decNumber\lib\%FB_TARGET_PLATFORM%" 2>nul
|
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\decNumber\temp\%FB_TARGET_PLATFORM%" 2>nul
|
2020-04-22 15:57:32 +02:00
|
|
|
|
|
|
|
@echo Cleaning libtomcrypt...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\libtomcrypt\lib\%FB_TARGET_PLATFORM%" 2>nul
|
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\libtomcrypt\temp\%FB_TARGET_PLATFORM%" 2>nul
|
2020-04-22 15:57:32 +02:00
|
|
|
|
|
|
|
@echo Cleaning libtommath...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\libtommath\lib\%FB_TARGET_PLATFORM%" 2>nul
|
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\libtommath\temp\%FB_TARGET_PLATFORM%" 2>nul
|
2020-04-22 15:57:32 +02:00
|
|
|
|
|
|
|
@echo Cleaning re2...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\re2\builds\%FB_TARGET_PLATFORM%" 2>nul
|
2020-04-22 15:57:32 +02:00
|
|
|
|
|
|
|
@echo Cleaning examples
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\examples\prebuilt\%FB_TARGET_PLATFORM%" 2>nul
|
2007-09-06 15:25:04 +02:00
|
|
|
|
|
|
|
:: Removing this might screw up parallel builds.
|
|
|
|
:: So let's be sure we mean it.
|
|
|
|
if defined FB_CLEAN_SHARED (
|
2020-04-22 15:57:32 +02:00
|
|
|
@echo Cleaning icu Shared dirs...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\icu\include" 2>nul
|
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\icu\source\data\out" 2>nul
|
|
|
|
@del /Q "%FB_ROOT_PATH%\extern\icu\source\extra\uconv\resources\*.res" 2>nul
|
|
|
|
@del "%FB_ROOT_PATH%\extern\icu\source\extra\uconv\pkgdatain.txt" 2>nul
|
|
|
|
@del "%FB_ROOT_PATH%\extern\icu\source\stubdata\stubdatabuilt.txt" 2>nul
|
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\icu\source\test\testdata\out" 2>nul
|
2020-04-22 16:04:00 +02:00
|
|
|
|
|
|
|
@echo Cleaning zlib...
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /S /Q "%FB_ROOT_PATH%\extern\zlib\%FB_TARGET_PLATFORM%" 2>nul
|
|
|
|
@del "%FB_ROOT_PATH%\extern\zlib\zconf.h" 2>nul
|
|
|
|
@del "%FB_ROOT_PATH%\extern\zlib\zlib.h" 2>nul
|
2020-04-22 16:04:00 +02:00
|
|
|
|
|
|
|
@echo Cleaning shared gen and dsql files...
|
2021-09-07 19:13:40 +02:00
|
|
|
@del "%FB_ROOT_PATH%\src\include\gen\parse.h" 2>nul
|
|
|
|
@del "%FB_ROOT_PATH%\src\dsql\dsql.tab.h" 2>nul
|
|
|
|
@del "%FB_ROOT_PATH%\src\dsql\parse.cpp" 2>nul
|
2020-04-22 16:04:00 +02:00
|
|
|
|
2007-09-06 15:25:04 +02:00
|
|
|
)
|
2007-02-26 16:18:41 +01:00
|
|
|
|
2007-09-06 15:25:04 +02:00
|
|
|
:: This really does clean the icu stuff - but is it too much? Cleaning less
|
|
|
|
:: thoroughly than this speeds up the build process if a previous build has been
|
2007-09-12 16:05:00 +02:00
|
|
|
:: made for the same target.
|
2007-09-06 15:25:04 +02:00
|
|
|
if defined FB_INTLREALCLEAN (
|
2007-09-17 11:49:39 +02:00
|
|
|
@echo Thoroughly scrubbing all remnants of INTL release dirs...
|
2021-09-07 19:13:40 +02:00
|
|
|
for /R "%FB_ROOT_PATH%\extern\icu\source\" %%a in (release) do (rmdir /q /s "%%a" 2>nul)
|
2007-09-06 15:25:04 +02:00
|
|
|
set FB_INTLREALCLEAN=
|
|
|
|
)
|
2007-02-26 16:18:41 +01:00
|
|
|
|
2007-09-06 15:25:04 +02:00
|
|
|
|
|
|
|
@echo Cleaning install and build files...
|
2007-02-26 16:18:41 +01:00
|
|
|
@del *%FB_TARGET_PLATFORM%.log 2>nul
|
|
|
|
@del *.manifest 2>nul
|
2007-09-06 15:25:04 +02:00
|
|
|
|
|
|
|
|
2020-04-22 15:57:32 +02:00
|
|
|
|
2021-09-07 19:13:40 +02:00
|
|
|
@rmdir /s /q "%FB_ROOT_PATH%\builds\win32\install_image" 2>nul
|
2007-02-26 16:18:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
@echo Completed executing %0
|
|
|
|
@echo.
|
2004-01-06 11:33:18 +01:00
|
|
|
|