Skip to content

Commit

Permalink
Integrate:
Browse files Browse the repository at this point in the history
[ 21595]
Prevent the installation of makefiles that can be found
under lib/.
p4raw-link: @21595 on //depot/perl: 922ef74

p4raw-id: //depot/maint-5.8/perl@21609
p4raw-integrated: from //depot/perl@21608 'merge in' installperl
	(@20969..)
  • Loading branch information
nwc10 committed Nov 1, 2003
1 parent 206fefa commit 171f12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installperl
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down Expand Up @@ -808,6 +808,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)/};

Expand Down

0 comments on commit 171f12b

Please sign in to comment.