pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap/files Some strip(1) commands don't strip any...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e70f43d1a9b7
branches:  trunk
changeset: 490151:e70f43d1a9b7
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Fri Mar 04 03:11:50 2005 +0000

description:
Some strip(1) commands don't strip anything but executables, so in order
to strip dynamic libraries, one would have to pass "-f" to strip(1).
This is done by passing "-S -f" to install, which implies "-s".
Make it so.

diffstat:

 bootstrap/files/install-sh.in |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r a345b8afd201 -r e70f43d1a9b7 bootstrap/files/install-sh.in
--- a/bootstrap/files/install-sh.in     Thu Mar 03 22:47:34 2005 +0000
+++ b/bootstrap/files/install-sh.in     Fri Mar 04 03:11:50 2005 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: install-sh.in,v 1.2 2004/05/17 14:54:45 jschauma Exp $
+# $NetBSD: install-sh.in,v 1.3 2005/03/04 03:11:50 jschauma Exp $
 # This script now also installs multiple files, but might choke on installing
 # multiple files with spaces in the file names.
 #
@@ -50,6 +50,7 @@
 chowncmd=""
 chgrpcmd=""
 stripcmd=""
+stripflags=""
 rmcmd="$rmprog -f"
 mvcmd="$mvprog"
 src=""
@@ -86,6 +87,12 @@
            shift
            continue;;
 
+       -S) stripcmd="$stripprog"
+           stripflags="-S $2 $stripflags"
+           shift
+           shift
+           continue;;
+
        -t=*) transformarg=`echo "$1" | sed 's/-t=//'`
            shift
            continue;;
@@ -219,7 +226,7 @@
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else true ; fi &&
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else true ; fi &&
-       if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else true ; fi &&
+       if [ x"$stripcmd" != x ]; then $doit $stripcmd $stripflags "$dst"; else true ; fi &&
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else true ; fi
 else
 
@@ -269,7 +276,7 @@
 
                if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else true;fi &&
                if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else true;fi &&
-               if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else true;fi &&
+               if [ x"$stripcmd" != x ]; then $doit $stripcmd $stripflags "$dsttmp"; else true;fi &&
                if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else true;fi &&
 
 # Now rename the file to the real destination.



Home | Main Index | Thread Index | Old Index