2003-07-03 14:44:36 +02:00
|
|
|
@echo off
|
|
|
|
|
2003-07-05 16:45:43 +02:00
|
|
|
@call setenvvar.bat
|
|
|
|
@if errorlevel 1 (goto :END)
|
2020-06-19 09:38:26 +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...
|
2007-02-26 16:18:41 +01:00
|
|
|
@rmdir /S /Q %FB_OUTPUT_DIR% 2>nul
|
|
|
|
@rmdir /S /Q %FB_TEMP_DIR% 2>nul
|
2020-06-19 09:38:26 +02:00
|
|
|
@rmdir /S /Q %FB_ROOT_PATH%\builds\zip_pack_%FB_TARGET_PLATFORM% 2>nul
|
2003-07-05 04:20:20 +02:00
|
|
|
|
2007-09-06 15:25:04 +02:00
|
|
|
@echo Cleaning gen...
|
|
|
|
@rmdir /S /Q %FB_GEN_DIR% 2>nul
|
|
|
|
|
2020-06-19 09:38:26 +02:00
|
|
|
@echo Cleaning icu...
|
|
|
|
@rmdir /S /Q %FB_ROOT_PATH%\extern\icu\%FB_TARGET_PLATFORM%\%FBBUILD_BUILDTYPE% 2>nul
|
|
|
|
|
|
|
|
@echo Cleaning libtommath...
|
|
|
|
@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
|
2007-09-06 15:25:04 +02:00
|
|
|
|
2020-06-19 09:38:26 +02:00
|
|
|
:: Removing these might screw up parallel builds.
|
2007-09-06 15:25:04 +02:00
|
|
|
:: So let's be sure we mean it.
|
|
|
|
if defined FB_CLEAN_SHARED (
|
|
|
|
|
2020-06-19 09:38:26 +02:00
|
|
|
@echo Cleaning icu Shared dirs...
|
|
|
|
@rmdir /S /Q %FB_ROOT_PATH%\extern\icu\include
|
2007-09-06 15:25:04 +02:00
|
|
|
|
2020-06-19 09:38:26 +02:00
|
|
|
@echo Cleaning zlib...
|
|
|
|
@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
|
2007-09-06 15:25:04 +02:00
|
|
|
|
|
|
|
@echo Cleaning shared gen and dsql files...
|
2020-06-19 09:38:26 +02:00
|
|
|
@del %FB_ROOT_PATH%\src\include\gen\parse.h
|
|
|
|
@del %FB_ROOT_PATH%\src\dsql\dsql.tab.h
|
|
|
|
@del %FB_ROOT_PATH%\src\dsql\parse.cpp
|
2007-09-06 15:25:04 +02:00
|
|
|
|
2020-06-19 09:38:26 +02:00
|
|
|
)
|
2007-02-26 16:18:41 +01:00
|
|
|
|
2020-06-19 09:38:26 +02:00
|
|
|
@echo Cleaning install and build files...
|
|
|
|
@del *%FB_TARGET_PLATFORM%.log 2>nul
|
|
|
|
@del *.manifest 2>nul
|
2007-02-26 16:18:41 +01:00
|
|
|
|
|
|
|
@echo Completed executing %0
|
|
|
|
@echo.
|
2004-01-06 11:33:18 +01:00
|
|
|
|