Subject: Re: stand/.../newvers.sh
To: Simon Burge <simonb@telstra.com.au>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 04/13/1999 14:19:12
Simon Burge <simonb@telstra.com.au> writes:
> >From this, I'm tempted to nuke "vers.c" and make a "vers.h" that's
> included by boot.c (or whatever) and make the printf()s would look like:
> 
> 	printf("NetBSD/" MACHINE " " NETBSD_VERS " " BOOT_TYPE_NAME
> 	    " Bootstrap, Revision " BOOTPROG_VERS "\n");
> 	printf("(" BOOTPROG_MAKER ", " BOOTPROG_DATE ")\n");
> 
> This also have the "benefit" of not having anything in vers.h that's not
> needed, and will keep Chris happy :-) :-)
> 
> Is everyone happy with a "vers.h" scheme with #defines instead of
> "vers.c" with char[] variables?

This seems like a good idea.  it also makes the build process
(dependencies) nicer.

It'll undoubtedly annoy the "must be K&R C" purists, if there are any
of those still about, but annoying them is fun anyway.  8-)


cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.