X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/acce7d4e04d89207299003c3e80c69d50bc82069..e09f3e01ccd721309f0eb0aae224d84db2e8436a:/installperl diff --git a/installperl b/installperl index 53468a9..9686bfb 100755 --- a/installperl +++ b/installperl @@ -1,7 +1,7 @@ #!./perl BEGIN { - require 5.003_90; + require 5.004; @INC = 'lib'; $ENV{PERL5LIB} = 'lib'; } @@ -243,6 +243,7 @@ if (! $versiononly || !($installprivlib =~ m/\Q$]/)) { "${installarchlib}/pod/perldiag.pod"); if (compare($from, $to) || $nonono) { mkpath("${installarchlib}/pod", 1, 0777); + unlink($to); link($from, $to); } } @@ -348,7 +349,9 @@ sub link { eval { CORE::link($from, $to) ? $success++ - : warn "Couldn't link $from to $to: $!\n" + : ($from =~ m#^/afs/# || $to =~ m#^/afs/#) + ? die "AFS" # okay inside eval {} + : warn "Couldn't link $from to $to: $!\n" unless $nonono; }; if ($@) { @@ -414,7 +417,7 @@ sub installlib { } if (-f $_) { - if (/\.al$/ || /\.ix$/) { + if (/\.(?:al|ix)$/ && !($dir =~ m[^auto/(.*)$] && $archpms{$1})) { $installlib = $installprivlib; #We're installing *.al and *.ix files into $installprivlib, #but we have to delete old *.al and *.ix files from the 5.000