summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-10-31 20:35:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-10-31 20:35:23 +0000
commit922ef74c95e1191f8a8fc0cf9f4ec08a0ed8d2ef (patch)
treefd98ce54debaeacdd91bdb78e5aedef8bfbb5d28 /installperl
parentd08083205cf0981a17df3d0fa9585ef663647309 (diff)
downloadperl-922ef74c95e1191f8a8fc0cf9f4ec08a0ed8d2ef.tar.gz
Prevent the installation of makefiles that can be found
under lib/. p4raw-id: //depot/perl@21595
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl4
1 files changed, 3 insertions, 1 deletions
diff --git a/installperl b/installperl
index 3b734551e1..b734b4b763 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)/};