From: Rafael Garcia-Suarez Date: Fri, 31 Oct 2003 20:35:23 +0000 (+0000) Subject: Prevent the installation of makefiles that can be found X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=922ef74c95e1191f8a8fc0cf9f4ec08a0ed8d2ef;p=p5sagit%2Fp5-mst-13.2.git Prevent the installation of makefiles that can be found under lib/. p4raw-id: //depot/perl@21595 --- diff --git a/installperl b/installperl index 3b73455..b734b4b 100755 --- a/installperl +++ b/installperl @@ -2,7 +2,7 @@ BEGIN { require 5.004; - chdir '..' if !-d 'lib' and -d '..\lib'; + chdir '..' if !-d 'lib' and -d '../lib'; @INC = 'lib'; $ENV{PERL5LIB} = 'lib'; } @@ -797,6 +797,8 @@ sub installlib { $dir =~ m{/t(?:/|$)}; # ignore the cpan script in lib/CPAN/bin (installed later with other utils) return if $name eq 'cpan'; + # ignore the Makefiles + return if $name =~ /^makefile$/i; # ignore the test extensions return if $dir =~ m{ext/XS/(?:APItest|Typemap)/};