summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-24 21:18:45 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-24 21:18:45 +0000
commitedd8005722b88c4b620fb4c125cab3fe14e52b7d (patch)
tree19bdb5e5bbffb6d5db4ba36fab9e118bd2a40e09 /gnu/usr.bin/perl
parent0de12a66a36dcbdd9340bc586acf3de1a3a76013 (diff)
respect ``INSTALL_STRIP=-s'' completely pr 188
Diffstat (limited to 'gnu/usr.bin/perl')
-rw-r--r--gnu/usr.bin/perl/installperl11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/usr.bin/perl/installperl b/gnu/usr.bin/perl/installperl
index 0626c8ff2d1..60eb69b081c 100644
--- a/gnu/usr.bin/perl/installperl
+++ b/gnu/usr.bin/perl/installperl
@@ -1,5 +1,5 @@
#!./perl
-# $OpenBSD: installperl,v 1.4 1996/09/06 17:35:29 downsj Exp $
+# $OpenBSD: installperl,v 1.5 1997/07/24 21:12:15 kstailey Exp $
#
# This is hacked up, in order to support DESTDIR and INSTALL_STRIP.
#
@@ -102,8 +102,12 @@ if ($d_shrplib) {
# First we install the version-numbered executables.
+$installcmd = $ENV{"INSTALL"}
+ . " " . $ENV{"INSTALL_COPY"}
+ . " " . $ENV{"INSTALL_STRIP"};
+
&safe_unlink("$installbin/perl$ver$exe_ext");
-&cmd("cp perl$exe_ext $installbin/perl$ver$exe_ext");
+&cmd("$installcmd perl$exe_ext $installbin/perl$ver$exe_ext");
&safe_unlink("$installbin/sperl$ver$exe_ext");
if ($d_dosuid) {
@@ -123,9 +127,6 @@ if (! &samepath($installbin, '.')) {
}
if (! &samepath($installbin, 'x2p')) {
- $installcmd = $ENV{"INSTALL"}
- . " " . $ENV{"INSTALL_COPY"}
- . " " . $ENV{"INSTALL_STRIP"};
&safe_unlink("$installbin/a2p$exe_ext");
&cmd("$installcmd x2p/a2p$exe_ext $installbin");
&chmod(0755, "$installbin/a2p$exe_ext");