diff options
author | Larry Wall <lwall@netlabs.com> | 1995-03-12 22:32:14 -0800 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1995-03-12 22:32:14 -0800 |
commit | 748a93069b3d16374a9859d1456065dd3ae11394 (patch) | |
tree | 308ca14de9933a313dceacce8be77db67d9368c7 /installperl | |
parent | fec02dd38faf8f83471b031857d89cb76fea1ca0 (diff) | |
download | perl-748a93069b3d16374a9859d1456065dd3ae11394.tar.gz |
Perl 5.001perl-5.001
[See the Changes file for a list of changes]
Diffstat (limited to 'installperl')
-rwxr-xr-x | installperl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/installperl b/installperl index ed8912ca26..da6f739d05 100755 --- a/installperl +++ b/installperl @@ -28,9 +28,12 @@ while (<CONFIG>) { } close CONFIG; -$ver = sprintf("%5.3f", $] + 0); +$ver = $]; $release = substr($ver,0,3); $patchlevel = substr($ver,3,2); +die "Patchlevel of perl ($patchlevel)", + "and patchlevel of config.sh ($PATCHLEVEL) don't match\n" + if $patchlevel != $PATCHLEVEL; # Do some quick sanity checks. @@ -321,8 +324,12 @@ sub installlib { } # HP-UX (at least) needs to maintain execute permissions # on dynamically-loaded libraries. - &chmod(0644, "$installlib/$name") - unless (/\.$so$/ || /\.$dlext$/); + if ($name =~ /\.(so|$dlext)$/o) { + &chmod(0555, "$installlib/$name"); + } + else { + &chmod(0444, "$installlib/$name"); + } } } elsif (-d $_) { &makedir("$installlib/$name"); |