summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/installperl
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-24 21:12:16 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-24 21:12:16 +0000
commit0de12a66a36dcbdd9340bc586acf3de1a3a76013 (patch)
treefa42c838ab97e53c7849369043124c3cc3cf3ce4 /gnu/usr.bin/perl/installperl
parentf8beadbe4e325f8178acbe9b2240bb6113f7ce0f (diff)
respect ``INSTALL_STRIP=-s'' pr 188
Diffstat (limited to 'gnu/usr.bin/perl/installperl')
-rw-r--r--gnu/usr.bin/perl/installperl9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/installperl b/gnu/usr.bin/perl/installperl
index 14412b4e032..0626c8ff2d1 100644
--- a/gnu/usr.bin/perl/installperl
+++ b/gnu/usr.bin/perl/installperl
@@ -1,7 +1,7 @@
#!./perl
-# $OpenBSD: installperl,v 1.3 1996/08/26 14:06:20 downsj Exp $
+# $OpenBSD: installperl,v 1.4 1996/09/06 17:35:29 downsj Exp $
#
-# This is hacked up, in order to support DESTDIR.
+# This is hacked up, in order to support DESTDIR and INSTALL_STRIP.
#
BEGIN { @INC=('./lib', '../lib') }
@@ -123,8 +123,11 @@ if (! &samepath($installbin, '.')) {
}
if (! &samepath($installbin, 'x2p')) {
+ $installcmd = $ENV{"INSTALL"}
+ . " " . $ENV{"INSTALL_COPY"}
+ . " " . $ENV{"INSTALL_STRIP"};
&safe_unlink("$installbin/a2p$exe_ext");
- &cmd("cp x2p/a2p$exe_ext $installbin/a2p$exe_ext");
+ &cmd("$installcmd x2p/a2p$exe_ext $installbin");
&chmod(0755, "$installbin/a2p$exe_ext");
}