-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdistclean
executable file
·57 lines (47 loc) · 1.79 KB
/
distclean
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
#!/bin/sh
rmconf () {
echo rmconf $1
if test -f $1; then
base=$(basename $1 .in)
dir=$(dirname $1)
if test -f ${dir}/${base}; then
rm -f ${dir}/${base};
fi;
fi;}
for x in *.in */*.in */*/*.in */*/*/*.in; do rmconf ${x}; done
find . -name "*~" -type f -writable -exec rm '{}' \;
find . -name "#*#" -type f -writable -exec rm '{}' \;
find . -name "*.o" -type f -writable -exec rm '{}' \;
find . -name "*.gcda" -type f -writable -exec rm '{}' \;
find . -name "*.gcno" -type f -writable -exec rm '{}' \;
find . -name "*.gcov" -type f -writable -exec rm '{}' \;
find . -name "*.bb" -type f -writable -exec rm '{}' \;
find . -name "*.bbg" -type f -writable -exec rm '{}' \;
find . -name "*.da" -type f -writable -exec rm '{}' \;
find . -name "gmon.out" -writable -exec rm '{}' \;
# Miscellaneous files
find . -name "*.dSYM" -writable | xargs rm -rf;
for pat in *.gcda *.gcno *.gcov *.bb *.bbg *.da gmon.out *.heap; do
find -name ${pat} -writable -exec rm '{}' \; ;
done;
rm -f config.log config.status buildmode states/*;
rm -rf etc/*.o etc/.libs;
rm -f lib/*.a lib/*@[email protected]* lib/*.dylib;
rm -f lib/kno/*@[email protected]* lib/kno/*.dylib;
rm -f exe/knox@suffix@ exe/knotask@suffix@;
rm -f exe/knosrv@suffix@ exe/knod@suffix@;
rm -f exe/knosh@suffix@ exe/knocgi@suffix@;
rm -f *TAGS REVISION FULL_REVISION;
for file in tests/types/*.c \
tests/storage/*.c \
tests/scheme/*.c; \
do if test -f ${file}; then \
rm -f $(basename ${file} .c) \
$(basename ${file} .c).shared; \
fi; \
done;
rm -f tests/scheme/*.pool tests/scheme/*.index tests/scheme/*.log
rm -f tests/scheme/*.dtype tests/scheme/_countup.*
rm -f makefile config.log config.status config.cache;
rm -f etc/knogetconfig etc/knosetconfig etc/kno-rc.d;
rm -f exe/.gdbinit include/kno/config.h include/kno/revision.h;