-
Notifications
You must be signed in to change notification settings - Fork 0
/
CleanForRelease.bat
79 lines (65 loc) · 1.82 KB
/
CleanForRelease.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@echo off
del *.dcu /s
del *.dcp /s
del *.ddp /s
del *.ppu /s
del *.o /s
del *.~* /s
del *.log /s
del *.dsk /s
del *.dof /s
del *.bk? /s
del *.mps /s
del *.rst /s
del *.s /s
del *.a /s
del *.map /s
del *.rsm /s
del *.drc /s
del *.2007 /s
del *.local /s
rem delete more files
del *.bak /s
del *.xml /s
del *.cvsignore /s
del *.identcache /s
del *.otares /s
del *.tvsconfig /s
del *.stat /s
del *.db /s
rem delete cpp builder files
del *.hpp /s
del *.bpi /s
del *.lib /s
del *.#00 /s
del *.pch /s
del *.tds /s
del *.ilc /s
del *.ild /s
del *.ilf /s
del *.ils /s
del *.pdi /s
del *.vlb /s
echo _
echo ************************************************
echo Don't delete some files
echo ************************************************
echo _
attrib +R "AdvDemos/Q3Demo/Model/animation.cfg"
rem del *.cfg /s - there are quake's animations
attrib -R "AdvDemos/Q3Demo/Model/animation.cfg"
rem del *.res /s
rem del *.ico /s - some projects have own icos
rem del *.cur /s - cursors
rem del *.obj /s - obj models in media and resources for lazarus
echo delete all .svn directories with subdirectories and files
for /r %1 %%R in (.svn) do if exist "%%R" (rd /s /q "%%R")
echo---------------------------------------------------------
echo delete debug and Platform directories with all subdirectories and files
for /r %1 %%R in (Debug_Build) do if exist "%%R" (rd /s /q "%%R")
for /r %1 %%R in (Debug) do if exist "%%R" (rd /s /q "%%R")
for /r %1 %%R in (Release_Build) do if exist "%%R" (rd /s /q "%%R")
for /r %1 %%R in (Release) do if exist "%%R" (rd /s /q "%%R")
for /r %1 %%R in (__history) do if exist "%%R" (rd /s /q "%%R")
for /r %1 %%R in (__recovery) do if exist "%%R" (rd /s /q "%%R")
for /r %1 %%R in (staticobjs) do if exist "%%R" (rd /s /q "%%R")