1#!/bin/sh -e 2 3echo -n cleaning up . 4 5# Clean up the generated crud 6( 7 for FILE in compile config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs; do 8 if test -f $FILE; then 9 rm -f $FILE 10 fi 11 echo -n . 12 done 13) 14 15for FILE in aclocal.m4 configure config.h.in; do 16 if test -f $FILE; then 17 rm -f $FILE 18 fi 19 echo -n . 20done 21 22for DIR in autom4te.cache; do 23 if test -d $DIR; then 24 rm -rf $DIR 25 fi 26 echo -n . 27done 28 29find . -type f -name 'Makefile.in' -print0 | xargs -r0 rm -f -- 30find . -type f -name 'Makefile' -print0 | xargs -r0 rm -f -- 31 32echo ' done' 33 34if test x"${1}" = x"clean"; then 35 exit 36fi 37 38aclocal 39libtoolize --force --copy 40autoheader 41automake --add-missing --copy --gnu # -Wall 42autoconf # -Wall 43