-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.bat
34 lines (32 loc) · 1019 Bytes
/
clean.bat
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
30
31
32
33
34
@echo off
REM =======================================================================
REM Batch (.BAT) script (Windows) to delete all temporary files after
REM compiling a project with Microsoft Visual Studio (Visual C++) or GCC.
REM
REM Warning: It also deletes the debug databases, needed to "step into"
REM from a debugger. These files may be really *large*, but if you think
REM you will need them, remove the file for "*.pdb" below.
REM
REM Usage:
REM - Open a terminal (Windows-key + R , type "cmd", press ENTER)
REM - To delete build files from one (or, optionally) more directories, execute:
REM delete_build_temps.bat BUILDIR1 [BUILDIR2] [BUILDIR3] [...]
REM
REM By: Jose Luis Blanco Claraco, 2013
REM Released to Public Domain.
REM =======================================================================
set DIR=%CD%
:Loop
IF "%1"=="" GOTO Continue
cd %1
del /s *.obj
del /s *.o
del /s *.pch
del /s *.pdb
del /s *.ilk
del /s *.idb
del /s *.gch
SHIFT
cd %DIR%
GOTO Loop
:Continue