bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] CLI issue in latest code + CLI show version


From: Massimiliano Maini
Subject: Re: [Bug-gnubg] CLI issue in latest code + CLI show version
Date: Wed, 4 Feb 2009 10:34:11 +0100


Christian Anthon <address@hidden> wrote on 03/02/2009 21:28:23:

> On Tue, Feb 3, 2009 at 3:40 PM, Massimiliano Maini
> <address@hidden> wrote:
> >
> > Side question: is the build timestamp simply today's date (__DATE__)?
> > So if I build today with a code snapshot of last week, it will display
> > "wrong" information ?
>
> Yes, but normally it is not too important. Knowing the approximate
> date will help us track down changes. One suggestion is that you put
> something like
>
> #define SNAPSHOT "03 Feb 2009"
>
> in your config.h and that we change the code to look for it. You would
> have to change it manually then.

Let's go for this one:

if SNAPSHOT is defined, use it
else use __DATE__ (maybe with a * at the end, to indicate it's an assumption)

I'll have my makefile prompt for the snapshot date a do a define at compile time.

This avoids touching the config.h.

MaX.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]