From 69554a41b9380a22b68c1f1e4990b420fac85af7 Mon Sep 17 00:00:00 2001 From: grant Date: Sun, 16 Jan 2005 03:02:02 +0000 Subject: [PATCH] ensure we can find strip(1) --- bootstrap/mkbinarykit | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bootstrap/mkbinarykit b/bootstrap/mkbinarykit index 00d7d967b211..32852ace9c5c 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