Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Use /bin/test explicitly in one place, rather than [ or test...
details: https://anonhg.NetBSD.org/src/rev/8baadd19addb
branches: trunk
changeset: 536352:8baadd19addb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Sep 13 18:36:01 2002 +0000
description:
Use /bin/test explicitly in one place, rather than [ or test (which
might be a shell built-in). This allows this script to work otherwise
unchanged with Solaris 8's /bin/sh.
diffstat:
build.sh | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r f7c2ce2a6f53 -r 8baadd19addb build.sh
--- a/build.sh Fri Sep 13 18:31:41 2002 +0000
+++ b/build.sh Fri Sep 13 18:36:01 2002 +0000
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: build.sh,v 1.64 2002/09/03 22:03:48 bjh21 Exp $
+# $NetBSD: build.sh,v 1.65 2002/09/13 18:36:01 thorpej Exp $
#
# Top level build wrapper, for a system containing no tools.
#
@@ -239,7 +239,9 @@
make="${TOOLDIR-nonexistent}/bin/nbmake"
if [ -x $make ]; then
for f in usr.bin/make/*.[ch] usr.bin/make/lst.lib/*.[ch]; do
- if [ $f -nt $make ]; then
+ # Explcitly use /bin/test here; makes this script
+ # work otherwise-unchanged with Solaris 8's /bin/sh.
+ if /bin/test $f -nt $make; then
do_rebuildmake=true; break
fi
done
@@ -380,7 +382,7 @@
eval cat <<EOF $makewrapout
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.64 2002/09/03 22:03:48 bjh21 Exp $
+# Generated from: \$NetBSD: build.sh,v 1.65 2002/09/13 18:36:01 thorpej Exp $
#
EOF
Home |
Main Index |
Thread Index |
Old Index