summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorgrant <grant>2005-01-16 03:02:02 +0000
committergrant <grant>2005-01-16 03:02:02 +0000
commit70811ca2c65eab169252862415316d3f43fb609b (patch)
treeb9f0ed39998aaad1c7bff255a0bc0f2d45135e12 /bootstrap
parenta462ac33e75540f5cc540c66466911ac23c64e53 (diff)
downloadpkgsrc-70811ca2c65eab169252862415316d3f43fb609b.tar.gz
ensure we can find strip(1)
Diffstat (limited to 'bootstrap')
-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