From: Jarkko Hietaniemi Date: Wed, 15 Jul 1998 01:45:57 +0000 (+0300) Subject: 5.004_74: MPE/iX final touches X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f5ee3026104a5258c13c354d1b62b7b5e80170d;p=p5sagit%2Fp5-mst-13.2.git 5.004_74: MPE/iX final touches Message-Id: <199807142245.BAA09651@alpha.hut.fi> p4raw-id: //depot/perl@1502 --- diff --git a/installperl b/installperl index d462333..2db72d4 100755 --- a/installperl +++ b/installperl @@ -159,11 +159,6 @@ if ($Is_VMS) { copy("perlshr$exe_ext", "$installbin/${perl}shr$exe_ext"); chmod(0755, "$installbin/${perl}shr$exe_ext"); } -elsif ($^O ne 'dos') { - safe_unlink("$installbin/$perl$ver$exe_ext"); - copy("perl$exe_ext", "$installbin/$perl$ver$exe_ext"); - chmod(0755, "$installbin/$perl$ver$exe_ext"); -} elsif ($^O eq 'mpeix') { # MPE lacks hard links and requires that executables with special # capabilities reside in the MPE namespace. @@ -174,6 +169,11 @@ elsif ($^O eq 'mpeix') { # Create a backup copy with the version number. link($Config{perlpath}, "$installbin/perl$ver$exe_ext"); } +elsif ($^O ne 'dos') { + safe_unlink("$installbin/$perl$ver$exe_ext"); + copy("perl$exe_ext", "$installbin/$perl$ver$exe_ext"); + chmod(0755, "$installbin/$perl$ver$exe_ext"); +} else { safe_unlink("$installbin/$perl.exe"); copy("perl.exe", "$installbin/$perl.exe"); diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index 21473a6..d0b3c89 100644 --- a/lib/File/Copy.pm +++ b/lib/File/Copy.pm @@ -181,7 +181,7 @@ unless (defined &syscopy) { *syscopy = \&rmscopy; } elsif ($^O eq 'mpeix') { *syscopy = sub { - return 0 unless @_ == 0; + return 0 unless @_ == 2; # Use the MPE cp program in order to # preserve MPE file attributes. return system('/bin/cp', '-f', $_[0], $_[1]) == 0;