Update of /cvsroot/fink/fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20325

Modified Files:
        Makefile ChangeLog 
Log Message:
'make clean' removes all files matched by .cvsignore files.


Index: Makefile
===================================================================
RCS file: /cvsroot/fink/fink/Makefile,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- Makefile    16 May 2005 05:49:39 -0000      1.17
+++ Makefile    15 Jul 2005 17:55:37 -0000      1.18
@@ -30,4 +30,13 @@
        @# (which also must be coded into t/Services/execute_nonroot_okay.t)
        @cd t && ./testmore.pl || find ${TESTS} -name '*.t' | sort | xargs 
/usr/bin/perl -I${PWD}/perlmod -MTest::Harness -e 'runtests(@ARGV)'
 
+# remove all files that are ignored by CVS
+clean:
+       # BUG: this for...`find` breaks if any dirname relative to the
+       # current one contains whitespace
+       @for ignorefile in `find . -name .cvsignore`; do \
+               echo "cleaning $$ignorefile"; \
+               ( cd `dirname $$ignorefile` && rm -f `cat .cvsignore` ); \
+       done
+
 .PHONY: all test install

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/ChangeLog,v
retrieving revision 1.354
retrieving revision 1.355
diff -u -d -r1.354 -r1.355
--- ChangeLog   13 Jul 2005 06:43:46 -0000      1.354
+++ ChangeLog   15 Jul 2005 17:55:37 -0000      1.355
@@ -1,3 +1,8 @@
+2005-07-15  Daniel Macks  <[EMAIL PROTECTED]>
+
+       * Makefile: Add a "clean" target: recursively find .cvsignore
+       files and remove files that are matched by them
+
 2005-07-11  Dave Vasilevsky  <[EMAIL PROTECTED]>
 
        * VERSION: Make fink HEAD always >> 0.24.x, since that has already



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to