001300d84b
(Thanks Alan!) * Before attempting to use KERNOBJDIR, we now need to "make obj" in ${KERNSRCDIR}/${KERNARCHDIR}/compile, not in ${TOP}/etc as used to be the case. * Fix one place where getmakevar was invoked unconditionally. It needs to be conditional on $runcmd != "echo", so that we can rely on the existence of the new $make executable. * Add a sanity check to getmakevar, to bomb if a similar error is introduced in the future. * Changed the bomb function to print to stderr instead of to stdout, and to kill the top level shell process. Without this, an attempted bomb from inside getmakevar did not work properly. * Moved some duplicated code into a new safe_getmakevar function, which calls getmakevar if that is safe, or else emits a literal '$' followed by the variable name. Improvements from me: * Always 'trap "exit 1" 1 2 3 15', so the kill in bomb() doesn't cause ugly output. |
||
---|---|---|
bin | ||
crypto | ||
dist | ||
distrib | ||
doc | ||
etc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
rescue | ||
sbin | ||
share | ||
sys | ||
tools | ||
usr.bin | ||
usr.sbin | ||
build.sh | ||
BUILDING | ||
Makefile | ||
Makefile.inc | ||
UPDATING |