047e56855a
Don't hardcode /usr/local in patch-* help and ok naddy@
37 lines
1008 B
Plaintext
37 lines
1008 B
Plaintext
$OpenBSD: patch-install,v 1.3 2008/01/24 18:31:25 merdely Exp $
|
|
--- install.orig Thu Oct 9 14:58:17 1997
|
|
+++ install Sun Oct 14 18:55:43 2001
|
|
@@ -1,5 +1,7 @@
|
|
#! /bin/csh -f
|
|
|
|
+set USRBINPATH=${PREFIX}/bin
|
|
+
|
|
if ("$#argv" < "1") then
|
|
echo "Usage: install binary"
|
|
exit 1
|
|
@@ -20,7 +22,7 @@ if ("$#argv" == "2") then
|
|
set mortal = "TRUE"
|
|
endif
|
|
|
|
-if ("$binary" != "pgpsendmail") then
|
|
+if ("$binary" != "unlikely") then
|
|
if ("$?USRBINPATH" == "0") then
|
|
# Where to install?
|
|
echo "No USRBINPATH environment variable defined."
|
|
@@ -29,11 +31,13 @@ if ("$binary" != "pgpsendmail") then
|
|
exit 0
|
|
endif
|
|
if ( ! -f $USRBINPATH/$binary ) then
|
|
- cp -p $binary $USRBINPATH
|
|
+ cp $binary $USRBINPATH
|
|
+ chmod 755 $USRBINPATH/$binary
|
|
exit 0
|
|
endif
|
|
mv $USRBINPATH/$binary $USRBINPATH/${binary}.old
|
|
- cp -p $binary $USRBINPATH
|
|
+ cp $binary $USRBINPATH
|
|
+ chmod 755 $USRBINPATH/$binary
|
|
if ("$status" != "0") then
|
|
mv $USRBINPATH/${binary}.old $USRBINPATH/$binary
|
|
exit 1
|