Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add -b option. Bootstrap only. i.e. build and install nbmake...
details: https://anonhg.NetBSD.org/src/rev/f256cd0087fc
branches: trunk
changeset: 516809:f256cd0087fc
user: jmc <jmc%NetBSD.org@localhost>
date: Tue Oct 30 21:04:05 2001 +0000
description:
Add -b option. Bootstrap only. i.e. build and install nbmake and then exit
diffstat:
build.sh | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diffs (57 lines):
diff -r 34ae3d069532 -r f256cd0087fc build.sh
--- a/build.sh Tue Oct 30 19:05:26 2001 +0000
+++ b/build.sh Tue Oct 30 21:04:05 2001 +0000
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: build.sh,v 1.8 2001/10/29 19:47:51 tv Exp $
+# $NetBSD: build.sh,v 1.9 2001/10/30 21:04:05 jmc Exp $
#
# Top level build wrapper, for a system containing no tools.
#
@@ -71,6 +71,7 @@
usage () {
echo "Usage:"
echo "$0 [-r] [-a arch] [-j njob] [-m mach] [-D dest] [-R release] [-T tools]"
+ echo " -b: bootstrap only. Build nbmake, install it and then exit."
echo " -m: set target MACHINE to mach (REQUIRED, or set in environment)"
echo " -D: set DESTDIR to dest (REQUIRED, or set in environment)"
echo " -T: set TOOLDIR to tools (REQUIRED, or set in environment)"
@@ -82,7 +83,7 @@
exit 1
}
-opts='a:hj:m:rD:R:T:'
+opts='a:bhj:m:rD:R:T:'
if type getopts >/dev/null 2>&1; then
# Use POSIX getopts.
@@ -105,6 +106,8 @@
-a) eval $optargcmd
MACHINE_ARCH=$OPTARG; opt_a=yes;;
+ -b) BOOTSTRAP_ONLY=1;;
+
-j) eval $optargcmd
buildjobs="NBUILDJOBS=$OPTARG";;
@@ -192,7 +195,7 @@
cat >$makeprog <<EOF
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.8 2001/10/29 19:47:51 tv Exp $
+# Generated from: \$NetBSD: build.sh,v 1.9 2001/10/30 21:04:05 jmc Exp $
#
exec $TOOLDIR/bin/nbmake MACHINE=$MACHINE MACHINE_ARCH=$MACHINE_ARCH \
USETOOLS=yes USE_NEW_TOOLCHAIN=yes TOOLDIR="$TOOLDIR" \${1+\$@}
@@ -200,6 +203,8 @@
chmod +x $makeprog
fi
-exec $makeprog -m `pwd`/share/mk ${buildtarget-build} \
- MKTOOLS=yes DESTDIR="$DESTDIR" TOOLDIR="$TOOLDIR" \
- $buildjobs $releasedir
+if [ "$BOOTSTRAP_ONLY" != "1" ]; then
+ exec $makeprog -m `pwd`/share/mk ${buildtarget-build} \
+ MKTOOLS=yes DESTDIR="$DESTDIR" TOOLDIR="$TOOLDIR" \
+ $buildjobs $releasedir
+fi
Home |
Main Index |
Thread Index |
Old Index