Source-Changes-HG archive

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

[src/trunk]: src Add "sourcesets" argument/target, which builds source sets into



details:   https://anonhg.NetBSD.org/src/rev/a29b95db5f9d
branches:  trunk
changeset: 546967:a29b95db5f9d
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat May 10 07:12:37 2003 +0000

description:
Add "sourcesets" argument/target, which builds source sets into
RELEASEDIR/source/sets

diffstat:

 BUILDING          |   5 +++++
 Makefile          |  14 ++++++++++----
 build.sh          |  12 +++++++-----
 doc/BUILDING.mdoc |  11 ++++++++++-
 4 files changed, 32 insertions(+), 10 deletions(-)

diffs (146 lines):

diff -r 9d7e63953619 -r a29b95db5f9d BUILDING
--- a/BUILDING  Sat May 10 06:08:12 2003 +0000
+++ b/BUILDING  Sat May 10 07:12:37 2003 +0000
@@ -436,6 +436,9 @@
                    distribution'' (as ``make build'' does not install all of
                    the required files).
 
+     sourcesets    Create source sets of the source tree into
+                   RELEASEDIR/source/sets.
+
      release       Do a ``make distribution'', build kernels, distribution me-
                    dia, and install sets (this as per ``make sets''), and then
                    package the system into a standard release layout as de-
@@ -498,6 +501,8 @@
 
      sets          Perform ``make sets''.
 
+     sourcesets    Perform ``make sourcesets''.
+
      The following command line options alter the behaviour of the above oper-
      ations: The following command line options alter the behaviour of the
      build.sh operations described above:
diff -r 9d7e63953619 -r a29b95db5f9d Makefile
--- a/Makefile  Sat May 10 06:08:12 2003 +0000
+++ b/Makefile  Sat May 10 07:12:37 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.205 2003/04/18 19:14:39 thorpej Exp $
+#      $NetBSD: Makefile,v 1.206 2003/05/10 07:12:37 lukem Exp $
 
 #
 # This is the top-level makefile for building NetBSD. For an outline of
@@ -52,6 +52,10 @@
 #      (See etc/Makefile for more information on this.)
 #   regression-tests:
 #      Runs the regression tests in "regress" on this host.
+#   sets:
+#      Populate ${RELEASEDIR}/${MACHINE}/binary/sets from ${DESTDIR}
+#   sourcesets:
+#      Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
 #
 # Targets invoked by `make build,' in order:
 #   cleandir:        cleans the tree.
@@ -245,11 +249,13 @@
        @printf "make ${.TARGET} finished at: " && date
 
 #
-# Create sets from $DESTDIR into $RELEASEDIR
+# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
 #
 
-sets:
-       (cd ${.CURDIR}/distrib/sets && ${MAKE} maketars)
+.for tgt in sets sourcesets
+${tgt}:
+       (cd ${.CURDIR}/distrib/sets && ${MAKE} $@)
+.endfor
 
 #
 # Build a release or snapshot (implies "make build").  Note that
diff -r 9d7e63953619 -r a29b95db5f9d build.sh
--- a/build.sh  Sat May 10 06:08:12 2003 +0000
+++ b/build.sh  Sat May 10 07:12:37 2003 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.99 2003/05/09 09:10:06 lukem Exp $
+#      $NetBSD: build.sh,v 1.100 2003/05/10 07:12:37 lukem Exp $
 #
 # Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -128,6 +128,7 @@
        do_kernel=false
        do_install=false
        do_sets=false
+       do_sourcesets=false
 
        # Create scratch directory
        #
@@ -322,7 +323,8 @@
     kernel=conf         Build kernel with config file \`conf'
     install=idir        Run "make installworld" to \`idir'
                         (useful after 'distribution' or 'release')
-    sets                Create distribution sets in RELEASEDIR
+    sets                Create binary sets in RELEASEDIR/MACHINE/binary/sets
+    sourcesets          Create source sets in RELEASEDIR/source/sets
 
  Options:
     -a arch     Set MACHINE_ARCH to arch (otherwise deduced from MACHINE)
@@ -535,7 +537,7 @@
                        usage
                        ;;
 
-               makewrapper|obj|tools|build|distribution|release|sets)
+               makewrapper|obj|tools|build|distribution|release|sets|sourcesets)
                        ;;
 
                kernel=*)
@@ -759,7 +761,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.99 2003/05/09 09:10:06 lukem Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.100 2003/05/10 07:12:37 lukem Exp $
 #
 
 EOF
@@ -896,7 +898,7 @@
                        buildtools
                        ;;
 
-               obj|build|distribution|release|sets)
+               obj|build|distribution|release|sets|sourcesets)
                        ${runcmd} "${makewrapper}" ${parallel} ${op} ||
                            bomb "Failed to make ${op}"
                        statusmsg "Successful make ${op}"
diff -r 9d7e63953619 -r a29b95db5f9d doc/BUILDING.mdoc
--- a/doc/BUILDING.mdoc Sat May 10 06:08:12 2003 +0000
+++ b/doc/BUILDING.mdoc Sat May 10 07:12:37 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: BUILDING.mdoc,v 1.17 2003/05/08 14:42:06 lukem Exp $
+.\"    $NetBSD: BUILDING.mdoc,v 1.18 2003/05/10 07:12:39 lukem Exp $
 .\"
 .\" Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -819,6 +819,10 @@
 .Dq make build
 does not install all of the required files).
 .
+.It Sy sourcesets
+Create source sets of the source tree into
+.Sy RELEASEDIR Ns Pa /source/sets .
+.
 .It Sy release
 Do a
 .Dq make distribution ,
@@ -954,6 +958,11 @@
 .It Sy sets
 Perform
 .Dq make sets .
+.
+.It Sy sourcesets
+Perform
+.Dq make sourcesets .
+.
 .El
 .
 .Pp



Home | Main Index | Thread Index | Old Index