1 |
#!/bin/sh |
2 |
|
3 |
# |
4 |
# Attempt to remove as many generated files as we can. |
5 |
# Ideally, a well-used development sandbox would look like |
6 |
# a pristine checkout after running this script. |
7 |
# |
8 |
|
9 |
if [ \! -f build/version ]; then |
10 |
echo 'Must run the clean script from the top-level dir of the libarchive distribution' 1>&2 |
11 |
exit 1 |
12 |
fi |
13 |
|
14 |
# If we're on BSD, blow away the build dir under /usr/obj |
15 |
rm -rf /usr/obj`pwd` |
16 |
|
17 |
# |
18 |
# Try to clean up a bit more... |
19 |
# |
20 |
|
21 |
find . -name '*.So' | xargs rm -f |
22 |
find . -name '*.a' | xargs rm -f |
23 |
find . -name '*.la' | xargs rm -f |
24 |
find . -name '*.lo' | xargs rm -f |
25 |
find . -name '*.o' | xargs rm -f |
26 |
find . -name '*.orig' | xargs rm -f |
27 |
find . -name '*.po' | xargs rm -f |
28 |
find . -name '*.rej' | xargs rm -f |
29 |
find . -name '*~' | xargs rm -f |
30 |
find . -name '.depend' | xargs rm -f |
31 |
find . -name '.deps' | xargs rm -rf |
32 |
find . -name '.dirstamp' | xargs rm -f |
33 |
find . -name '.libs' | xargs rm -rf |
34 |
find . -name 'CMakeFiles' | xargs rm -rf |
35 |
find . -name 'cmake_install.cmake' | xargs rm -f |
36 |
find . -name 'CTestTestfile.cmake' | xargs rm -f |
37 |
|
38 |
rm -rf Testing |
39 |
rm -rf autom4te.cache |
40 |
rm -rf bin |
41 |
rm -rf cmake.tmp |
42 |
rm -rf libarchive/Testing |
43 |
|
44 |
rm -f CMakeCache.txt |
45 |
rm -f DartConfiguration.tcl |
46 |
rm -f Makefile |
47 |
rm -f Makefile.in |
48 |
rm -f aclocal.m4 |
49 |
rm -f bsdcpio |
50 |
rm -f bsdcpio_test |
51 |
rm -f bsdtar |
52 |
rm -f bsdtar_test |
53 |
rm -f build/autoconf/compile |
54 |
rm -f build/autoconf/config.guess |
55 |
rm -f build/autoconf/config.sub |
56 |
rm -f build/autoconf/depcomp |
57 |
rm -f build/autoconf/install-sh |
58 |
rm -f build/autoconf/libtool.m4 |
59 |
rm -f build/autoconf/ltmain.sh |
60 |
rm -f build/autoconf/ltoptions.m4 |
61 |
rm -f build/autoconf/ltsugar.m4 |
62 |
rm -f build/autoconf/ltversion.m4 |
63 |
rm -f build/autoconf/lt~obsolete.m4 |
64 |
rm -f build/autoconf/missing |
65 |
rm -f build/autoconf/test-driver |
66 |
rm -f build/pkgconfig/libarchive.pc |
67 |
rm -f build/version.old |
68 |
rm -f cat/test/list.h |
69 |
rm -f config.h |
70 |
rm -f config.h.in |
71 |
rm -f config.log |
72 |
rm -f config.status |
73 |
rm -f configure |
74 |
rm -f cpio/*.1.gz |
75 |
rm -f cpio/Makefile |
76 |
rm -f cpio/bsdcpio |
77 |
rm -f cpio/test/Makefile |
78 |
rm -f cpio/test/bsdcpio_test |
79 |
rm -f cpio/test/list.h |
80 |
rm -f doc/html/* |
81 |
rm -f doc/man/* |
82 |
rm -f doc/pdf/* |
83 |
rm -f doc/text/* |
84 |
rm -f doc/wiki/* |
85 |
rm -f libarchive/*.[35].gz |
86 |
rm -f libarchive/Makefile |
87 |
rm -f libarchive/libarchive.so* |
88 |
rm -f libarchive/test/Makefile |
89 |
rm -f libarchive/test/libarchive_test |
90 |
rm -f libarchive/test/list.h |
91 |
rm -f libarchive_test |
92 |
rm -f libtool |
93 |
rm -f stamp-h1 |
94 |
rm -f tar/*.1.gz |
95 |
rm -f tar/Makefile |
96 |
rm -f tar/bsdtar |
97 |
rm -f tar/test/Makefile |
98 |
rm -f tar/test/bsdtar_test |
99 |
rm -f tar/test/list.h |