* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
* Restore previous functionality which supported running postinstall
with an extracted etc.tgz set as the "source" directory (i.e,
/usr/src isn't available). We do this by generating the MAKEDEV
to ${SCRATCHDIR} if the real source is available, and leverage off
the compare_dir() code that the rest of postinstall uses to support
this functionality.
* Don't special case MACHINE_ARCH==arm; the MAKEDEV.awk should
be doing that since etc/Makefile doesn't have similar special
case code. In any case, AFAICT the only MACHINE_ARCHs are
"arm" and "armeb"; there is no "armel" in NetBSD.
to generate the MAKEDEV to scratch dir and compare that with the currently
installed /dev/MAKEDEV; also add -a MACHINE_ARCH option to explicitly
set machine architecture for non-native builds
problem with postinstall pointed out by Patrick Welche and Hubert Feyrer
in private e-mails
generate the .Xr commands for device manpage crossreferences directly,
we no longer need to replace 'foo(4)' in the source MAKEDEV.tmpl
replace other gensub() calls with equivalent gsub(), and fix output
for fdc (we want 3 1/2", 5 1/4" - not 3 1/2``, 5 1/4'')
add target translation for 'random' -> rnd(4) and 'scsibus#' -> scsi(4),
and fix typo in opms entry
Gcc-3.3 produces valid warnings in most cases and uncovers bugs. In the
cases where a variable is known to be initialized, we initialize it and
add: /* XXX: gcc */. If a $MACHINE_ARCH's compiler is busted, it can add
-Wno-uninitialized in the MD Makefile.