From 2c17359bf96f5ae6d60599b4007fb336f6f5bf8d Mon Sep 17 00:00:00 2001 From: lordmulder Date: Sat, 19 Dec 2015 23:30:40 +0100 Subject: [PATCH] Clean-up before build. --- z_build.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/z_build.bat b/z_build.bat index f911480..d2ff3d7 100644 --- a/z_build.bat +++ b/z_build.bat @@ -53,6 +53,16 @@ for /F "tokens=1,2,3,4 delims=:" %%a in ('"%~dp0\etc\date.exe" +ISOTIME:%%T') do if "%ISO_DATE%"=="" goto BuildError if "%ISO_TIME%"=="" goto BuildError +REM /////////////////////////////////////////////////////////////////////////// +REM // Clean up temp files +REM /////////////////////////////////////////////////////////////////////////// +echo --------------------------------------------------------------------- +echo CLEAN UP +echo --------------------------------------------------------------------- +for %%i in (bin,obj,tmp) do ( + del /Q /S /F "%~dp0\%%i\*.*" +) + REM /////////////////////////////////////////////////////////////////////////// REM // Build the binaries REM ///////////////////////////////////////////////////////////////////////////