-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleanup.sh
58 lines (57 loc) · 998 Bytes
/
cleanup.sh
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
# collect input
while true; do
read -p "Do you wish to remove all maintainer files [y/n]? " yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer y or n.";;
esac
done
# dirs
rm -rf autom4te.cache/
rm -rf aux-dist/
rm -rf m4/
rm -rf src/.deps
rm -rf src/.libs
rm -f src/*.lo
rm -f src/*.la
rm -rf src/libtool
rm -rf src/toollib/.deps
rm -f src/toollib/.dirstamp
rm -f src/toollib/*.lo
rm -f src/toollib/*.la
# files
if [ -f include/Makefile ]; then
rm include/Makefile
fi
if [ -f include/Makefile.in ]; then
rm include/Makefile.in
fi
if [ -f src/Makefile ]; then
rm src/Makefile
fi
if [ -f src/Makefile.in ]; then
rm src/Makefile.in
fi
if [ -f aclocal.m4 ]; then
rm aclocal.m4
fi
if [ -f config.status ]; then
rm config.status
fi
if [ -f config.log ]; then
rm config.log
fi
if [ -f configure ]; then
rm configure
fi
if [ -f libtool ]; then
rm libtool
fi
if [ -f Makefile ]; then
rm Makefile
fi
if [ -f Makefile.in ]; then
rm Makefile.in
fi
echo "Cleaned files!"