]> granicus.if.org Git - sudo/commitdiff
check for path to strip
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 Mar 1997 22:45:02 +0000 (22:45 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 Mar 1997 22:45:02 +0000 (22:45 +0000)
install-sh

index 72fb95a2218a46824175df86bf1dd79fc60fb5eb..efc0f8bba285e1d030b5fda43b0e01511d1532c5 100755 (executable)
@@ -6,7 +6,7 @@
 
 PROGNAME=`basename $0`
 
-##  Paths to programs.  CHOWN and WHOAMI are checked below.
+##  Paths to programs.  CHOWN, STRIP and WHOAMI are checked below.
 CHOWN=chown
 CHGRP=chgrp
 CHMOD=chmod
@@ -37,6 +37,14 @@ if [ ${WHOAMI} = whoami ] ; then
     fi
 fi
 
+if [ ${STRIP} = strip ] ; then
+    if [ -f /usr/ccs/bin/strip ] ; then
+       STRIP=/usr/ccs/bin/strip
+    elif [ -f /usr/bin/strip ] ; then
+       STRIP=/usr/bin/strip
+    fi
+fi
+
 ##  Defaults.
 CHOWNIT=false
 CHGROUPIT=false