From: <des...@us...> - 2003-12-25 00:58:13
|
Update of /cvsroot/beepmp/bmp/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv21437/scripts Modified Files: cleanall.sh rm-auto-scripts.sh Log Message: - updated helper scripts, cleanall.sh now removes .gmo files Index: cleanall.sh =================================================================== RCS file: /cvsroot/beepmp/bmp/scripts/cleanall.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** cleanall.sh 28 Nov 2003 02:09:41 -0000 1.5 --- cleanall.sh 25 Dec 2003 00:58:09 -0000 1.6 *************** *** 15,31 **** if test -e Makefile; then ! echo "cleaning up source tree" make -k distclean fi ! echo "removing auto generated files" scripts/rm-auto-scripts.sh ! echo "removing backups..." scripts/rm-backups.sh -f -v ! echo "removing change log..." rm -f ChangeLog ! echo "removing cache files used by autoconf/automake..." rm -rf autom4te* --- 15,34 ---- if test -e Makefile; then ! echo "*info* cleaning up source tree" make -k distclean fi ! echo "*info* removing .gmo files" ! find po -name '*.gmo' -exec rm -vf {} \; ! ! echo "*info* removing auto generated files" scripts/rm-auto-scripts.sh ! echo "*info* removing backups..." scripts/rm-backups.sh -f -v ! echo "*info* removing change log..." rm -f ChangeLog ! echo "*info* removing cache files used by autoconf/automake..." rm -rf autom4te* Index: rm-auto-scripts.sh =================================================================== RCS file: /cvsroot/beepmp/bmp/scripts/rm-auto-scripts.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** rm-auto-scripts.sh 28 Nov 2003 02:09:41 -0000 1.6 --- rm-auto-scripts.sh 25 Dec 2003 00:58:09 -0000 1.7 *************** *** 7,26 **** # RM="rm -vf" ! RemoveMakeIns() { # scan for Makefile.ins and remove only if # there is a corresponding Makefile.am ! Files=`find ./ -name Makefile.in` ! for File in $Files; do ! if [ -e "`dirname $File`/Makefile.am" -o \ ! -e "`dirname $File`/Makefile.in.in" ]; then ! $RM $File else ! echo *info* Not deleting $File... fi --- 7,27 ---- # + DIRECTORIES=". libbeep" RM="rm -vf" ! remove_makefile_ins() { # scan for Makefile.ins and remove only if # there is a corresponding Makefile.am ! FILES=`find ./ -name Makefile.in` ! for file in $FILES; do ! if [ -e "`dirname $file`/Makefile.am" -o \ ! -e "`dirname $file`/Makefile.in.in" ]; then ! $RM $file else ! echo *info* NOT deleting $file... fi *************** *** 28,31 **** --- 29,58 ---- } + remove_files() + { + pushd . > /dev/null + + echo Entering $1 + cd $1 + + # remove files from aclocal + $RM aclocal.m4 + + # remove files from autoheader + $RM config.h.in + $RM stamp-h1.in + + # remove files from automake + remove_makefile_ins + + # remove files from autoconf and configure + $RM configure + $RM config.status + $RM libtool + $RM -r autom4te.cache + + echo Leaving $1 + popd > /dev/null + } # lame test for top level path *************** *** 34,50 **** fi ! # remove files from aclocal ! $RM {.,libbeep}/aclocal.m4 ! ! # remove files from autoheader ! $RM {.,libbeep}/config.h.in ! $RM {.,libbeep}/stamp-h1.in ! ! # remove files from automake ! RemoveMakeIns ! ! # remove files from autoconf and configure ! $RM {.,libbeep}/configure ! $RM {.,libbeep}/config.status ! $RM {.,libbeep}/libtool ! $RM -r {.,libbeep}/autom4te.cache --- 61,65 ---- fi ! for dir in $DIRECTORIES ; do ! remove_files $dir ! done |