[pacman-dev] [PATCH 5/5] Remove autotools files with autoclean.sh

Allan McRae allan at archlinux.org
Wed Jun 26 01:02:02 EDT 2013


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 autoclean.sh | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/autoclean.sh b/autoclean.sh
index 900f353..96b2729 100755
--- a/autoclean.sh
+++ b/autoclean.sh
@@ -1,15 +1,22 @@
 #!/bin/sh -xu
 
+shopt -s extglob
+
 [ -f Makefile ] && make distclean
 
-rm -rf autom4te.cache
+rm -f ABOUT-NLS
+rm -f aclocal.m4
 rm -f config.h.in config.h
 rm -f config.status
 rm -f configure
-rm -f stamp*
-rm -f aclocal.m4
 rm -f compile
 rm -f libtool
+rm -f stamp*
+
+rm -rf autom4te.cache
+
+rm -f build-aux/!(ltmain-asneeded.patch)
+rm -f m4/!(acinclude.m4)
 
 rm -f test/pacman/*.pyc
 rm -f doc/html/*.html
@@ -17,6 +24,11 @@ rm -f doc/man3/*.3
 
 find . \( -name 'Makefile' -o \
           -name 'Makefile.in' -o \
+          -path '*/po/Makefile.in.in' -o \
+          -path '*/po/Makevars.template' -o \
           -path '*/po/POTFILES' -o \
+          -path '*/po/Rules-quot' -o \
+          -path '*/po/*.sed' -o \
+          -path '*/po/*.header' -o \
           -path '*/po/stamp-po' -o \
           -path '*/po/*.gmo' \) -exec rm -f {} +
-- 
1.8.3.1



More information about the pacman-dev mailing list