-
Notifications
You must be signed in to change notification settings - Fork 11
/
cleanup.bat
62 lines (62 loc) · 1.52 KB
/
cleanup.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
@echo off
echo.
echo ************************************
echo ** **
echo ** Deleting file garbage **
echo ** **
echo ************************************
echo.
if not exist *.exe goto :no_exe_file
del *.exe >nul
:no_exe_file
if not exist *.ppu goto :no_ppu_file
del *.ppu
:no_ppu_file
if not exist *.o goto :no_o_file
del *.o
:no_o_file
if not exist !log goto :no_log_file
del !log
:no_log_file
if not exist adt2help.* goto :no_help_file
del adt2help.* >nul
:no_help_file
if not exist adt2play\*.exe goto :no_exe_file2
del adt2play\*.exe >nul
:no_exe_file2
if not exist adt2play\*.fpd goto :no_fpd_file2
del adt2play\*.fpd >nul
:no_fpd_file2
if not exist adt2play\*.map goto :no_map_file2
del adt2play\*.map
:no_map_file2
if not exist adt2play\*.obj goto :no_obj_file2
del adt2play\*.obj
:no_obj_file2
if not exist adt2play\*.sym goto :no_sym_file2
del adt2play\*.sym
:no_sym_file2
if not exist adt2play\!log goto :no_log_file2
del adt2play\!log
:no_log_file2
if not exist *.ppu goto :no_ppu_file
del /F /Q *.ppu
:no_ppu_file
if not exist *.o goto :no_o_file
del /F /Q *.o
:no_o_file
if not exist *.or goto :no_or_file
del /F /Q *.or
:no_or_file
if not exist *.res goto :no_res_file
del /F /Q *.res
:no_res_file
if not exist sdl\*.ppu goto :no_ppu_file2
del /F /Q sdl\*.ppu
:no_ppu_file2
if not exist sdl\*.o goto :no_o_file2
del /F /Q sdl\*.o
:no_o_file2
if not exist sdl\*.a goto :no_a_file
del /F /Q sdl\*.a
:no_a_file