summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-07-14 03:07:30 +0300
committerGurusamy Sarathy <gsar@cpan.org>1998-07-14 05:53:08 +0000
commit1d84e8dfc14d5303f4e9e567bd263f6b4d88e584 (patch)
treec3b41441d1e4461c6a69f523e8e773af19185a57 /installperl
parentb9d5759e179510f18c95c0d3686ffa808dca661e (diff)
downloadperl-1d84e8dfc14d5303f4e9e567bd263f6b4d88e584.tar.gz
add files and tweaks needed for MPE/iX port (via PM)
Message-Id: <199807132107.AAA20603@alpha.hut.fi> Subject: MPE/iX patches for _73 p4raw-id: //depot/perl@1478
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl31
1 files changed, 25 insertions, 6 deletions
diff --git a/installperl b/installperl
index 8bb8d1439c..d462333fd2 100755
--- a/installperl
+++ b/installperl
@@ -163,7 +163,18 @@ 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 {
+}
+elsif ($^O eq 'mpeix') {
+ # MPE lacks hard links and requires that executables with special
+ # capabilities reside in the MPE namespace.
+ safe_unlink("$installbin/perl$ver$exe_ext", $Config{perlpath});
+ # Install the primary executable into the MPE namespace as perlpath.
+ copy("perl$exe_ext", $Config{perlpath});
+ chmod(0755, $Config{perlpath});
+ # Create a backup copy with the version number.
+ link($Config{perlpath}, "$installbin/perl$ver$exe_ext");
+}
+else {
safe_unlink("$installbin/$perl.exe");
copy("perl.exe", "$installbin/$perl.exe");
}
@@ -225,7 +236,13 @@ foreach my $file (@corefiles) {
if (! $versiononly && ! samepath($installbin, '.') && ($^O ne 'dos') && ! $Is_VMS) {
safe_unlink("$installbin/$perl$exe_ext", "$installbin/suid$perl$exe_ext");
- link("$installbin/$perl$ver$exe_ext", "$installbin/$perl$exe_ext");
+ if ($^O eq 'mpeix') {
+ # MPE doesn't support hard links, so use a symlink.
+ # We don't want another cloned copy.
+ symlink($Config{perlpath}, "$installbin/perl$exe_ext");
+ } else {
+ link("$installbin/$perl$ver$exe_ext", "$installbin/$perl$exe_ext");
+ }
link("$installbin/s$perl$ver$exe_ext", "$installbin/suid$perl$exe_ext")
if $d_dosuid;
}
@@ -256,11 +273,13 @@ if (!$versiononly && !$nonono && !$Is_W32 && !$Is_VMS && -t STDIN && -t STDERR
(yn("Many scripts expect perl to be installed as $usrbinperl.\n" .
"Do you wish to have $usrbinperl be the same as\n" .
"$expinstperl? [y] ")))
- {
+ {
unlink($usrbinperl);
- eval { CORE::link $instperl, $usrbinperl } ||
- eval { symlink $expinstperl, $usrbinperl } ||
- copy($instperl, $usrbinperl);
+ ( $Config{'d_link'} eq 'define' &&
+ eval { CORE::link $instperl, $usrbinperl } ) ||
+ eval { symlink $expinstperl, $usrbinperl } ||
+ copy($instperl, $usrbinperl);
+
$mainperl_is_instperl = 1;
}
}