diff options
author | Chip Salzenberg <chip@atlantic.net> | 1997-01-28 23:10:48 +1200 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-01-29 18:11:00 +1200 |
commit | 1dd15ed44b060a6466d83e3d6d09175516a30e5c (patch) | |
tree | 123518a0c080453a968adff0b8207e3787acc615 | |
parent | f5c9c777f4c9b0ec78ca380f0573d3e31819eb44 (diff) | |
download | perl-1dd15ed44b060a6466d83e3d6d09175516a30e5c.tar.gz |
Put all extensions' modules in $archlib
-rwxr-xr-x | installperl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/installperl b/installperl index e6e2bbeb6f..bbcd1c383a 100755 --- a/installperl +++ b/installperl @@ -30,6 +30,14 @@ umask 022; @pods = (<pod/*.pod>); +%archpms = (Config => 1, FileHandle => 1, overload => 1); +find(sub { + if ("$File::Find::dir/$_" =~ m{^ext/[^/]+/(.*)\.pm$}) { + (my $pm = $1) =~ s{^lib/}{}; + $archpms{$pm} = 1; + } + }, 'ext'); + $ver = $]; $release = substr($ver,0,3); # Not used presently. $patchlevel = substr($ver,3,2); @@ -349,7 +357,8 @@ sub installlib { $name = "$dir/$name" if $dir ne ''; my $installlib = $installprivlib; - if ($dir =~ /^auto/ || $name =~ /^(Config|FileHandle|Safe)\.pm$/) { + if ($dir =~ /^auto/ || + ($name =~ /^(.*)\.(?:pm|pod)$/ && $archpms{$1})) { $installlib = $installarchlib; return unless $do_installarchlib; } else { |