Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: afb on September 25, 2006, 12:32:11 PM

Title: Suggestion: split SVN "revision" and "version"
Post by: afb on September 25, 2006, 12:32:11 PM
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...