summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorNorton T. Allen <allen@huarp.harvard.edu>1998-02-18 06:51:44 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-20 12:49:54 +0000
commit156620fa44a712d84367040dea35ac6eae776347 (patch)
treea8b95ee1e37a835697e85dc93ae0596094825614 /installperl
parent1d0ef875ad68662c31346951eeba38d25948ba59 (diff)
downloadperl-156620fa44a712d84367040dea35ac6eae776347.tar.gz
installperl
p4raw-id: //depot/perl@556
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl17
1 files changed, 10 insertions, 7 deletions
diff --git a/installperl b/installperl
index 150b334f8c..6197e92b1d 100755
--- a/installperl
+++ b/installperl
@@ -158,6 +158,16 @@ foreach $file (@corefiles) {
"$installarchlib/CORE/$file");
}
+# Install main perl executables
+# Make links to ordinary names if installbin directory isn't current directory.
+
+if (! $versiononly && ! samepath($installbin, '.') && ($^O ne 'dos')) {
+ safe_unlink("$installbin/perl$exe_ext", "$installbin/suidperl$exe_ext");
+ link("$installbin/perl$ver$exe_ext", "$installbin/perl$exe_ext");
+ link("$installbin/sperl$ver$exe_ext", "$installbin/suidperl$exe_ext")
+ if $d_dosuid;
+}
+
# Offer to install perl in a "standard" location
$mainperl_is_instperl = 0;
@@ -195,13 +205,6 @@ if (!$versiononly && !$nonono && $^O ne 'MSWin32' && -t STDIN && -t STDERR
# Make links to ordinary names if installbin directory isn't current directory.
-if (! $versiononly && ! samepath($installbin, '.') && ($^O ne 'dos')) {
- safe_unlink("$installbin/perl$exe_ext", "$installbin/suidperl$exe_ext");
- link("$installbin/perl$ver$exe_ext", "$installbin/perl$exe_ext");
- link("$installbin/sperl$ver$exe_ext", "$installbin/suidperl$exe_ext")
- if $d_dosuid;
-}
-
if (!$versiononly && ! samepath($installbin, 'x2p')) {
safe_unlink("$installbin/a2p$exe_ext");
copy("x2p/a2p$exe_ext", "$installbin/a2p$exe_ext");