X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/b5afd3466ff5e5b70ea2921169f138f02727183e..2d11a7e9678a8894622d2af2943f9976d913f4c9:/installperl diff --git a/installperl b/installperl index 64a94ab..ac1c770 100755 --- a/installperl +++ b/installperl @@ -385,7 +385,7 @@ foreach my $file (@corefiles) { # on dynamically-loadable libraries. So we do it for all. if (copy_if_diff($file,"$installarchlib/CORE/$file")) { if ($file =~ /\.(\Q$so\E|\Q$dlext\E)$/) { - strip("-S", "$installarchlib/CORE/$file") if $^O =~ /^(rhapsody|darwin)$/; + strip("-S", "$installarchlib/CORE/$file") if $^O eq 'darwin'; chmod(0555, "$installarchlib/CORE/$file"); } else { chmod(0444, "$installarchlib/CORE/$file"); @@ -671,7 +671,7 @@ sub installlib { # this, as $_ becomes a pathname, and so still works. However, it's not # obvious that $_ is needed later, and hence $_ must not be modified. - # Also, many of the regex exlusion tests below are now superfluous, as the + # Also, many of the regex exclusion tests below are now superfluous, as the # files in question are either no longer in blead, or now in ext/, dist/ or # cpan/ and not copied into lib/ @@ -691,7 +691,7 @@ sub installlib { # lib/Archive/Tar/bin, the config_data script in lib/Module/Build/scripts # and zipdetails in cpan/IO-Compress/bin # (they're installed later with other utils) - return if $name =~ /^(?:cpan|instmodsh|prove|corelist|ptar|cpan2dist|cpanp|cpanp-run-perl|ptardiff|ptargrep|config_data|zipdetails)\z/; + return if $name =~ /^(?:cpan|instmodsh|prove|corelist|ptar|ptardiff|ptargrep|config_data|zipdetails)\z/; # ignore the Makefiles return if $name =~ /^makefile$/i; # ignore the test extensions @@ -777,7 +777,7 @@ sub installlib { # on dynamically-loaded libraries. if (copy_if_diff($_, "$installlib/$name")) { strip("-S", "$installlib/$name") - if $^O =~ /^(rhapsody|darwin)$/ and /\.(?:so|$dlext|a)$/; + if $^O eq 'darwin' and /\.(?:so|$dlext|a)$/; chmod(/\.(so|$dlext)$/ ? 0555 : 0444, "$installlib/$name"); } }