[Top][All Lists]

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

Re: setting $VERSION at runtime

From: Bruce Korb
Subject: Re: setting $VERSION at runtime
Date: Mon, 23 Jan 2006 14:55:55 -0800
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Brian Dessent wrote:
We have an application where the version number (for the purposes of
creating a dist tarball) is determined by grepping for $Revision $ in
the toplevel ChangeLog.  Because this is not a static value, it means we
can't just set VERSION when running automake, since a commit could cause
it to bump without regenerating any Makefiles or such.  So at the moment
our "dist" tarballs are named "foo-0" (and contain files in a foo-0
directory), instead of the proper version.

I've looked at using the dist-hook but it seems that at that point the
distdir has already been created and it's too late to rename it.

Is there any way of setting this value of VERSION for the "dist" rule at

Hi Brian,

What is your goal?  If your desire is to have a version that always "bumps"
without having to think about it, you might want to consider thinking again.  :)
As you have noticed, by using ChangeLog you have to manually do something
else.  What it boils down to is that at some point you do have to do something
manually.  Make it something simple and easy, then it will be obvious and
maintainable to boot.  :)  Good luck - Bruce

reply via email to

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