[Top][All Lists]

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

Re: Strategy to specify major, minor, and patch versions

From: Zack Weinberg
Subject: Re: Strategy to specify major, minor, and patch versions
Date: Fri, 29 Aug 2014 16:15:46 -0400

On Fri, Aug 29, 2014 at 2:04 PM, Bob Friesenhahn
<address@hidden> wrote:
> All of these strategies are done in m4 and result in the configure script
> being re-generated, which seems senseless and annoying to me.

So, I wonder, does anything break if you do it in shell instead?  Just
take Shawn's strategy and make all the M4 macros into shell variables,
like this:


AC_INIT([app], [${APP_VERSION}])

(The braces and AC_SUBST increase the odds that everything will Just
Work should "${APP_VERSION}" wind up getting written verbatim into a
Makefile.  I've also corrected the AM_INIT_AUTOMAKE invocation per

If that works, you can then take the APP_{MAJOR,MINOR,PATCH}_VERSION=
lines and split them out to their own file, let's call it,
and read it from with ". $srcdir/".  I *think*
$srcdir is set already at that point.

If that *doesn't* work, that is a concrete thing that we can try to
fix in Autoconf.

(Whether or not it works, perhaps this is a scenario that we should
try to make *less awkward* in Autoconf, but I think the first step
remains to find out whether that works.)

reply via email to

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