-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathcleanup.bat
More file actions
29 lines (24 loc) · 851 Bytes
/
cleanup.bat
File metadata and controls
29 lines (24 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
setlocal
REM ============================================================================
REM cleanup.bat - Remove compiler/build artifacts in repository
REM ============================================================================
REM Removes common Delphi/FPC artifacts recursively from current directory:
REM .ppu .o .or .obj .dcu .dcp .dcpil .rsm .res .map .tds .identcache
REM .compiled .dproj.local .lps .a
REM
REM Important:
REM - .bak files are NOT touched
REM - source files are NOT touched
REM ============================================================================
set ROOT=%~dp0
pushd "%ROOT%" >nul
echo Cleaning build artifacts under:
echo %CD%
echo.
for %%E in (ppu o or obj dcu dcp dcpil rsm res map tds identcache compiled dproj.local lps a) do (
del /q "*.%%E" 2>nul
)
echo Done.
popd >nul
endlocal