[Top][All Lists]

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

Re: RFE: allow for computed version number

From: Peter Johansson
Subject: Re: RFE: allow for computed version number
Date: Thu, 04 Jun 2009 17:06:47 -0400
User-agent: Thunderbird (X11/20090105)

Hi Ralf,

Ralf Wildenhues wrote:
You could then experiment with suitable rules to keep the file up to
date, depending on the VCS.  VCS hooks could ensure to update (or
remove, or otherwise outdate) the file.  All rules that need the version
can just depend upon the file, and read from it afterwards, that nicely
avoids any duplicate work.  The file should conceptually live in the
source tree as it is a source property not a build one (though newline
encoding may make this a bit ugly for cross-platform mounts).
Maintainer mode could even be used to avoid updates to this file.

What do you think of this approach?

I think that is an excellent direction and it is fairly easy to propagate that information into a `version.c' or similar file. However, I wonder if it's possible, using this approach, to also override $(VERSION) (or dirstdir) in the Makefile?


Peter Johansson

svndigest maintainer,
yat maintainer,

reply via email to

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