-
Notifications
You must be signed in to change notification settings - Fork 11
/
clean_tmp.bat
executable file
·66 lines (61 loc) · 1.78 KB
/
clean_tmp.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
@echo off
rem SECU-3 - An open source, free engine control unit
rem Copyright (C) 2007 Alexey A. Shabelnikov. Ukraine, Kiev
rem
rem Helpful script for cleaning up all temporary files
call :DelIfExist binaries\*.ilk
call :DelIfExist binaries\*.idb
call :DelIfExist binaries\*.pdb
call :DelIfExist binaries\*.tds
call :DelIfExist libraries\*.lib
call :DelIfExist libraries\*.exp
if exist intermediate (
cd intermediate
call :RDIfExist about\about.dir
call :DelIfExist about\about.ncb
call :RDIfExist io-core\io-core.dir
call :DelIfExist io-core\io-core.ncb
call :RDIfExist midesk\midesk.dir
call :DelIfExist midesk\midesk.ncb
call :RDIfExist ui-core\ui-core.dir
call :DelIfExist ui-core\ui-core.ncb
call :RDIfExist paramdesk\paramdesk.dir
call :DelIfExist paramdesk\paramdesk.ncb
call :RDIfExist fwimpexp\fwimpexp.dir
call :DelIfExist fwimpexp\fwimpexp.ncb
call :RDIfExist hexutils\hexutils.dir
call :DelIfExist hexutils\hexutils.ncb
call :RDIfExist propgrid\propgrid.dir
call :DelIfExist propgrid\propgrid.ncb
call :RDIfExist hiscctrl\hiscctrl.dir
call :DelIfExist hiscctrl\hiscctrl.ncb
call :RDIfExist tabldesk\tabldesk.dir
call :DelIfExist tabldesk\tabldesk.ncb
call :RDIfExist secu3man\secu3man.dir
call :DelIfExist secu3man\secu3man.ncb
cd ..
)
if exist sources (
cd sources
call :DelIfExist Chart2D\*.obj
call :DelIfExist Chart2D\*.~h
call :DelIfExist Chart2D\*.~cpp
call :DelIfExist Chart2D\*.~def
call :DelIfExist Chart2D\*.~bpr
call :DelIfExist Chart2D\*.~bpf
call :DelIfExist Chart2D\*.res
call :DelIfExist Chart3D\*.obj
call :DelIfExist Chart3D\*.~h
call :DelIfExist Chart3D\*.~cpp
call :DelIfExist Chart3D\*.~def
call :DelIfExist Chart3D\*.~bpr
call :DelIfExist Chart3D\*.~bpf
call :DelIfExist Chart3D\*.res
cd ..
)
:DelIfExist
if exist %1 ( DEL /Q %1 )
exit /b
:RDIfExist
if exist %1 ( RD /s/q %1 )
exit /b