update to installperl for perl5.004_02 to skip CVS dir
authorTony Sanders <sanders@bsdi.com>
Wed, 27 Aug 1997 11:05:24 +0000 (23:05 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Fri, 5 Sep 1997 00:00:00 +0000 (00:00 +0000)
Without this patch, it installs the CVS directories along with the
other lib files.  You could probably merge this test with the one
below it (just always set prune or something) -- I'll leave that
decision upto the perl wizards.

p5p-msgid: 199708272307.RAA13451@austin.bsdi.com

installperl

index 9686bfbdc6ba40fc232affa1f97b4bb8c86563e4..a96c89a3596a814d249510d717f14ff043c61fb5 100755 (executable)
@@ -401,6 +401,11 @@ sub installlib {
     local($depth) = $dir ? "lib/$dir" : "lib";
 
     my $name = $_;
+
+    if ($name eq 'CVS' && -d $name) {
+       $File::Find::prune = 1;
+       return;
+    }
     
     # ignore patch backups and the .exists files.
     return if $name =~ m{\.orig$|~$|^\.exists};