Source-Changes-HG archive

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

[src/netbsd-1-6]: src Pull up revision 1.65 (requested by thorpej in ticket #...



details:   https://anonhg.NetBSD.org/src/rev/9d487952ae0b
branches:  netbsd-1-6
changeset: 529262:9d487952ae0b
user:      he <he%NetBSD.org@localhost>
date:      Sun Nov 03 14:36:36 2002 +0000

description:
Pull up revision 1.65 (requested by thorpej in ticket #796):
  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 b522ce40f916 -r 9d487952ae0b build.sh
--- a/build.sh  Sun Nov 03 14:25:24 2002 +0000
+++ b/build.sh  Sun Nov 03 14:36:36 2002 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-#  $NetBSD: build.sh,v 1.58.2.2 2002/07/09 08:07:03 lukem Exp $
+#  $NetBSD: build.sh,v 1.58.2.3 2002/11/03 14:36:36 he Exp $
 #
 # Top level build wrapper, for a system containing no tools.
 #
@@ -232,7 +232,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
@@ -373,7 +375,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.58.2.2 2002/07/09 08:07:03 lukem Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.58.2.3 2002/11/03 14:36:36 he Exp $
 #
 
 EOF



Home | Main Index | Thread Index | Old Index