-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean_for_dist
executable file
·74 lines (66 loc) · 2.25 KB
/
clean_for_dist
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
#!/bin/sh
echo Remove special files
rm -rf release_reminders.txt*
rm -rf HISTORY~
rm -rf README~
rm -rf CHANGELOG~
rm -rf COPYRIGHT~
rm -rf INSTALL~
rm -rf TODO~
rm -rf BUILD~
rm -rf BUILD_UNIX~
rm -rf BUILD_WIN32.txt~
rm -f config.status
echo Removing Work directories...
rm -rf src/vscp/Build
find . -type d -name Debug -print -exec rm -rf {} +;
find . -type d -name Release -print -exec rm -rf {} +;
find . -type d -name .svn -print -exec rm -rf {} +;
echo Removing work files...
find . -name *.aps -print -exec rm {} +;
find . -name *.clw -print -exec rm {} +;
find . -name *.s#? -print -exec rm {} +;
find . -name *.b#? -print -exec rm {} +;
find . -name *.eep -print -exec rm {} +;
find . -name *.elf -print -exec rm {} +;
find . -name *.map -print -exec rm {} +;
find . -name *.lst -print -exec rm {} +;
find . -name *.bck -print -exec rm {} +;
find . -name *.hex -print -exec rm {} +;
find . -name *.rom -print -exec rm {} +;
find . -name *.cod -print -exec rm {} +;
find . -name *.err -print -exec rm {} +;
find . -name *.xrf -print -exec rm {} +;
find . -name *.apr -print -exec rm {} +;
find . -name *.opt -print -exec rm {} +;
find . -name *.plg -print -exec rm {} +;
find . -name *.dep -print -exec rm -rf {} +;
find . -name *.scc -print -exec rm {} +;
find . -name *.avd -print -exec rm {} +;
find . -name *.erc -print -exec rm {} +;
find . -name *.pro -print -exec rm {} +;
find . -name *.log -print -exec rm {} +;
find . -name *.aux -print -exec rm {} +;
find . -name *.c_sym -print -exec rm {} +;
find . -name *.asm_sym -print -exec rm {} +;
find . -name *.?~ -print -exec rm {} +;
find . -name *.*~ -print -exec rm -rf {} +;
find . -name *\~ -print -exec rm -rf {} +;
find . -name *.bkx -print -exec rm {} +;
find . -name *.save -print -exec rm {} +;
find . -name *.ctl -print -exec rm {} +;
find . -name *.ncb -print -exec rm {} +;
find . -name GCC* -print -exec rm -rf {} +;
find . -name *.o -print -exec rm -rf {} +;
find . -name *.obj -print -exec rm -rf {} +;
find . -name *.pcs -print -exec rm -rf {} +;
find . -name *.pdb -print -exec rm -rf {} +;
find . -name *.bak -print -exec rm -rf {} +;
find . -name *.so -print -exec rm -rf {} +;
echo Removing unneeded folders...
rm -rf autom4te.cache
rm -f config.status
rm Makefile
rm linux/Makefile
rm m4/Makefile
rm configure