Don't remove unknown files in cache cleaning code
[pacman-ng.git] / autoclean.sh
blob8f45d5613909d8430da43deab4dbf7b5e41b2b58
1 #!/bin/sh -xu
3 [ -f Makefile ] && make distclean
4 rm -rf autom4te.cache
5 rm -f {Makefile.in,Makefile}
6 rm -f {config.h.in,config.h}
7 rm -f config.status
8 rm -f configure
9 rm -f stamp*
10 rm -f aclocal.m4
11 rm -f compile
12 rm -f libtool
14 rm -f lib/libalpm/{Makefile.in,Makefile}
15 rm -f src/util/{Makefile.in,Makefile}
16 rm -f src/pacman/{Makefile.in,Makefile}
17 rm -f scripts/{Makefile.in,Makefile}
18 rm -f etc/{Makefile.in,Makefile}
19 rm -f etc/pacman.d/{Makefile.in,Makefile}
20 rm -f etc/abs/{Makefile.in,Makefile}
21 rm -f test/{pacman,util}{,/tests}/{Makefile.in,Makefile}
22 rm -f contrib/{Makefile.in,Makefile}
23 rm -f doc/{Makefile.in,Makefile}
25 rm -f test/pacman/*.pyc
26 rm -f doc/html/*.html
27 rm -f doc/man3/*.3
29 rm -f {lib/libalpm,scripts,src/pacman}/po/{Makefile.in,Makefile}
30 rm -f {lib/libalpm,scripts,src/pacman}/po/POTFILES
31 rm -f {lib/libalpm,scripts,src/pacman}/po/stamp-po
32 rm -f {lib/libalpm,scripts,src/pacman}/po/*.gmo