summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/installperl
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-07-24 21:18:44 +0000
committerkstailey <kstailey@openbsd.org>1997-07-24 21:18:44 +0000
commitef58a984144a186fed75bc3e46739af10d1ce88b (patch)
treef577094ae09322691d996e792cf6ccd39e0bc6c6 /gnu/usr.bin/perl/installperl
parentrespect ``INSTALL_STRIP=-s'' pr 188 (diff)
downloadwireguard-openbsd-ef58a984144a186fed75bc3e46739af10d1ce88b.tar.xz
wireguard-openbsd-ef58a984144a186fed75bc3e46739af10d1ce88b.zip
respect ``INSTALL_STRIP=-s'' completely pr 188
Diffstat (limited to 'gnu/usr.bin/perl/installperl')
-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");