Merge /pub/main
[educational.data.git] / ethernet-socket / cleanout
blobbdcd1d6883d7e624c666f9b88a17f66b91d07921
1 #!/bin/sh
2 ###########################################################
3 # $Id: cleanout,v 1.1 2006-07-18 08:29:41 tobibobi Exp $
4 # $Log: cleanout,v $
5 # Revision 1.1 2006-07-18 08:29:41 tobibobi
6 # Initial revision
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
21 make maintainer-clean
22 fi;
25 cat > cleanMFS <<EOF
26 #!/usr/bin/perl
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";
36 } else {
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";
46 exec "rm \$makefile";
48 EOF
50 chmod +x cleanMFS
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 {} \;
56 rm cleanMFS
59 # clean out ordinary files in root
60 find . -name \*~ -exec rm -f {} \;
62 rm -f configure
63 rm -rf config
64 rm -rf aclocal.m4
65 rm -f default.txvpck
66 rm -f config.log
67 rm -f config.h
68 rm -f config.h.in
69 rm -f libtool