-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cleanup.sh
executable file
·56 lines (49 loc) · 1.13 KB
/
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
#!/usr/bin/env bash
test "${PWD##*/}" = "csl" || exit 1
MAKE=${MAKE:-$(which gmake 2>/dev/null || echo "make")}
$MAKE distclean >/dev/null 2>&1
find . -name "*~" -exec rm -f {} \;
find . -name "*.bak" -exec rm -f {} \;
find . -name "*.orig" -exec rm -f {} \;
find . -name "Makefile.in*" -exec rm -f {} \;
find . -name "Makefile" -exec rm -f {} \;
find . -name "gmon.out" -exec rm -f {} \;
DIRS=(.)
for i in ${DIRS[*]}
do
if test -d "$i"; then
pushd $i >/dev/null
rm -Rf \
aclocal.m4 \
autom4te.cache \
compile \
configure \
config.log \
config.sub \
config.status \
config.guess \
configure.ac \
configure.in \
doc \
Doxyfile \
ipch \
debug* \
release* \
depcomp \
libtool \
ltmain.sh \
install-sh \
missing \
mkinstalldirs \
intltool-* \
po/LINGUAS \
po-plugin* \
Makefile.am \
po-engine/LINGUAS \
po-engine/Makevars \
src/config.h.in \
src/plugins/Makefile.am \
popd >/dev/null
fi
done
exit 0