2 ###########################################################
3 # $Id: cleanout,v 1.1 2006-07-18 08:29:41 tobibobi Exp $
5 # Revision 1.1 2006-07-18 08:29:41 tobibobi
8 # Revision 1.2 2005/12/15 14:26:31 tobibobi
9 # Updated cleanout a bit
11 # Revision 1.1.1.1 2005/12/15 13:20:42 tobibobi
14 # Revision 1.2 2005/11/29 21:17:12 tobibobi
15 # - Changed protocol so the flags for broadcast was correct
16 # - Added comments to almost all files.
18 ###########################################################
20 if test -f Makefile
; then
27 my \$makefile=@ARGV[0];
28 \$makefile =~ s/\.am//;
29 \$makefile =~ s/\.in//;
30 if (-e "\$makefile.am") {
31 print " \e[32;1m*\e[0m Found \$makefile.am\n";
32 if (-e "\$makefile.in") {
33 print " \e[31;1m!\e[0m Delete \$makefile.in\n";
34 exec "rm \$makefile.in";
37 if( -e "\$makefile.in") {
38 print " \e[32;1m*\e[0m Found \$makefile.in.\n";
43 if( -e "\$makefile") {
44 print " \e[32;1m*\e[0m Found \$makefile\n";
45 print " \e[31;1m!\e[0m delete \$makefile\n";
52 # Examine all files in src and clean them out
53 echo "Testing makefiles"
54 find .
-name Makefile.am
-exec `pwd`/cleanMFS
{} \
; -or -name Makefile.
in -exec `pwd`/cleanMFS
{} \
;
59 # clean out ordinary files in root
60 find .
-name \
*~
-exec rm -f {} \
;