News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Suggestion: split SVN "revision" and "version"

Started by afb, September 25, 2006, 12:32:11 PM

Previous topic - Next topic

afb

Currently revision.m4 sets SVN_REVISION to "trunk-r0"...

This is nice for things like RPM that can do shell hacks like:

%define _svnrev         %(echo @VERSION@ | cut -c 8-)

But not so good for things like XML, without preprocessing ?


My suggestion is to change the current "SVN_REVISION"
to "SVN_VERSION", and have SVN_REVISION be the rev...


m4_define([SVN_REVISION], 2994)
m4_define([SVN_VERSION], trunk-r2994)


It only needs a small change to configure.in and to bootstrap,
and to update_revision.sh of course, to make it use "version".


AC_INIT([codeblocks], SVN_VERSION)
...
AC_SUBST(SVN_REVISION)


I want for autotools to autogenerate codeblocks.plist, you see...