Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Suggestion: split SVN "revision" and "version"

(1/1)

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

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

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

--- End code ---
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...


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

--- End code ---

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


--- Code: ---AC_INIT([codeblocks], SVN_VERSION)
...
AC_SUBST(SVN_REVISION)

--- End code ---

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

Navigation

[0] Message Index

Go to full version