Author Topic: Suggestion: split SVN "revision" and "version"  (Read 3623 times)

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Suggestion: split SVN "revision" and "version"
« 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:
Code
%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...

Code
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".

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

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