-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanup
More file actions
40 lines (38 loc) · 742 Bytes
/
Copy pathcleanup
File metadata and controls
40 lines (38 loc) · 742 Bytes
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
#!/bin/sh
function cleanup() {
if test -d "$1"; then
prev=$(pwd)
cd "$1"
if test "$1" != "." && test -f cleanup; then
prev_backup=$prev
. cleanup
prev=$prev_backup
else
rm -f Makefile
rm -f Makefile.in
rm -f aclocal.m4
rm -f config.*
rm -f configure
rm -f depcomp
rm -f install-sh
rm -f ltmain.sh
rm -f makefiles.*~
rm -f mdate-sh
rm -f missing
rm -f libtool
rm -f stamp-h1
rm -f *.o *.a *.la *.lo *.obj *.lib *.exe *.dll
rm -fR autom4te.cache
rm -fR .deps
rm -fR .libs
fi
cd $prev
fi
}
cleanup .
cleanup hello
cleanup echo
cleanup hello++
cleanup echo++
cleanup ltdl
cleanup instantGNU_ltdl