pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap ensure we can find strip(1)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3b2fbe0eb21
branches:  trunk
changeset: 487513:e3b2fbe0eb21
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Jan 16 03:02:02 2005 +0000

description:
ensure we can find strip(1)

diffstat:

 bootstrap/mkbinarykit |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 7dcbcf65a404 -r e3b2fbe0eb21 bootstrap/mkbinarykit
--- a/bootstrap/mkbinarykit     Sun Jan 16 02:56:24 2005 +0000
+++ b/bootstrap/mkbinarykit     Sun Jan 16 03:02:02 2005 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: mkbinarykit,v 1.10 2004/12/21 14:12:50 grant Exp $
+# $NetBSD: mkbinarykit,v 1.11 2005/01/16 03:02:02 grant Exp $
 #
 # Make a binary bootstrap kit and place it in targetdir (or current
 # working directory if not specified). The mk.conf.example file is
@@ -122,9 +122,14 @@
 
 # Make a tar ball
 
+strip=strip
+if [ -x /usr/ccs/bin/strip ]; then
+       strip=/usr/ccs/bin/strip
+fi
+
 echo "Stripping binaries..."
-strip "$prefix/"bin/*
-strip "$prefix/"sbin/*
+$strip "$prefix/"bin/*
+$strip "$prefix/"sbin/*
 
 echo "Making binary kit."
 PATH="$prefix/bin:$PATH"; export PATH # in case tar was built by bootstrap



Home | Main Index | Thread Index | Old Index