develooper Front page | perl.perl6.internals | Postings from December 2001

[netlabs #208] [PATCH] "make distclean" blows away CVS/* files

From:
Robert Spier
Date:
December 15, 2001 23:57
Subject:
[netlabs #208] [PATCH] "make distclean" blows away CVS/* files
Message ID:
15388.21444.992297.198440@rls.cx
[amk - Fri Dec 14 20:42:39 2001]:
> Running "make distclean" with a post-0.0.3 snapshot of the CVS tree 
> deletes all the files in CVS/ subdirectories, making further updating of
> the tree impossible.

This patch makes 'make distclean' not blow away CVS files.

Is this the answer, or should we create a 'make cvsclean' that is like
distclean, but leaves CVS files around?

-R

Index: Makefile.in
===================================================================
RCS file: /cvs/public/parrot/Makefile.in,v
retrieving revision 1.77
diff -u -u -r1.77 Makefile.in
--- Makefile.in	14 Dec 2001 05:48:50 -0000	1.77
+++ Makefile.in	16 Dec 2001 07:50:53 -0000
@@ -160,7 +160,7 @@
 	cd languages && $(MAKE) clean && cd ..
 
 distclean:
-	$(PERL) -MExtUtils::Manifest=filecheck -le '$$ExtUtils::Manifest::Quiet=1;unlink $$_ for filecheck()'
+	$(PERL) -MExtUtils::Manifest=filecheck -le '$$ExtUtils::Manifest::Quiet=1; do { unlink $$_ unless $$_ =~ m!(?:CVS/|\.cvs)! } for filecheck()'
 
 test: $(TEST_PROG) assemble.pl .test_dummy
 




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About