Subject: Re: Ok, so just how has build.sh changed?
To: Hisashi T Fujinaka <htodd@twofifty.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: current-users
Date: 01/24/2003 20:42:46
--6zdv2QT/q3FMhpsV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi,
On Fri, Jan 24, 2003 at 11:20:41AM -0800, Hisashi T Fujinaka wrote:
> Oh, now I remember: I saw that message and it said "this commit
> message" and it was empty after that (i.e. no commit message
> attached.)
well, the commit message is attached and i can read it without a single
problem (mutt).
> OK, off I go to try to find the commit message. Arrgh.
here it is:
From: Luke Mewburn <lukem@netbsd.org>
Subject: CVS commit: src
To: source-changes@netbsd.org
Date: Thu, 23 Jan 2003 18:24:09 +0200 (EET)
=20
Module Name: src
Committed By: lukem
Date: Thu Jan 23 16:24:09 UTC 2003
=20
Modified Files:
src: BUILDING build.sh
src/doc: BUILDING.mdoc
=20
Log Message:
Rework how build.sh functions, so that command line options set various
parameters, and a list of "operations" defines what to do.
The full usage is show below. Notes:
`-b' has been deprecated (it always occurs now)
`-d' is replaced by "distribution"
`-R rel' onlys sets RELEASEDIR; use "release" to build a release
`-k kern' has been replaced by "kernel=3Dkern"
`-i idir' has been replaced by "install=3Didir"
-r now occurs before nbmake is rebuilt
=20
Add a copyright (long due!). Rework the code to (a KNF inspired) ShellNF.
Use functions appropriately. Allow `nb' prefix to be easily changed to
something else. Solve world peace (just kidding)
=20
This is part of the (never achievable) goal of attempting to make
NetBSD easier to build...
=20
--8<-- new usage follows --8<--
=20
Usage: build.sh [-EnorUu] [-a arch] [-B buildid] [-D dest] [-j njob] [-M =
obj]
[-m mach] [-O obj] [-R release] [-T tools] [-V var=3D[value]]
[-w wrapper] [operation [...] ]
=20
System build operations (all imply "obj" and "tools"):
build Run "make build"
distribution Run "make distribution" (includes etc/ files)
release Run "make release" (includes kernels & distrib media)
=20
Other operations:
obj Run "make obj" (default unless -o)
tools Build and install tools
kernel=3Dconf Build kernel with config file `conf'
install=3Didir Run "make installworld" to `idir'
(useful after 'distribution' or 'release')
=20
Options:
-a arch Set MACHINE_ARCH to arch (otherwise deduced from MACHINE)
-B buildId Set BUILDID to buildId
-D dest Set DESTDIR to dest
-E Set "expert" mode; disables some DESTDIR checks
-j njob Run up to njob jobs in parallel; see make(1)
-M obj Set obj root directory to obj (sets MAKEOBJDIRPREFIX)
-m mach Set MACHINE to mach (not required if NetBSD native)
-n Show commands that would be executed, but do not execute them
-O obj Set obj root directory to obj (sets a MAKEOBJDIR pattern)
-o Set MKOBJDIRS=3Dno (do not create objdirs at start of build)
-R release Set RELEASEDIR to release
-r Remove contents of TOOLDIR and DESTDIR before building
-T tools Set TOOLDIR to tools. If unset, and TOOLDIR is not set in
the environment, nbmake will be (re)built unconditionally.
-U Set UNPRIVED
-u Set UPDATE
-V v=3D[val] Set variable `v' to `val'
-w wrapper Create nbmake script as wrapper
(default: ${TOOLDIR}/bin/nbmake-${MACHINE})
=20
=20
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/BUILDING
cvs rdiff -r1.83 -r1.84 src/build.sh
cvs rdiff -r1.8 -r1.9 src/doc/BUILDING.mdoc
=20
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> --
-- <salo@silcnet.org> --
--6zdv2QT/q3FMhpsV
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
iD8DBQE+MZc2iwjDDlS8cmMRAluoAJwJvP0jsmB4p/Apiq7uxweevxH89ACfZiQa
EHv2yCt5huSEfq7hV+UeUpY=
=JINM
-----END PGP SIGNATURE-----
--6zdv2QT/q3FMhpsV--