summaryrefslogtreecommitdiff
path: root/bootstrap/mkbinarykit
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-01-16 03:02:02 +0000
committergrant <grant@pkgsrc.org>2005-01-16 03:02:02 +0000
commit69554a41b9380a22b68c1f1e4990b420fac85af7 (patch)
treeb9f0ed39998aaad1c7bff255a0bc0f2d45135e12 /bootstrap/mkbinarykit
parent20b97d46a18d8d7e80586170aba1cf420af54d74 (diff)
downloadpkgsrc-69554a41b9380a22b68c1f1e4990b420fac85af7.tar.gz
ensure we can find strip(1)
Diffstat (limited to 'bootstrap/mkbinarykit')
-rwxr-xr-xbootstrap/mkbinarykit11
1 files changed, 8 insertions, 3 deletions
diff --git a/bootstrap/mkbinarykit b/bootstrap/mkbinarykit
index 00d7d967b21..32852ace9c5 100755
--- a/bootstrap/mkbinarykit
+++ b/bootstrap/mkbinarykit
@@ -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 @@ fi
# 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