cvs commit: hugs98/src version.h.in Makefile.in version.h

Ross Paterson ross@soi.city.ac.uk
Wed, 9 Oct 2002 20:10:41 +0100


On Fri, Oct 04, 2002 at 06:09:13AM -0700, Jeffrey R Lewis wrote:
> On Friday 04 October 2002 02:56 am, Ross Paterson wrote:
> > Wouldn't it be better if version.h were generated by configure rather
> > than make?  And if you used the 3-letter month name, there'd be room
> > for RC1 etc.
> 
> If it were generated by configure, it would most certainly be out of
> date most of the time (but perhaps you re-run configure more than I do ;-).

I see your point.  Still, your scheme has a couple of defects:
- if anything is changed, hugs.c and server.c get recompiled
- if only those two are changed, the version number is unaffected

How about a little version.c with nothing in it but a getVersion()
function, and making that depend on everything else?