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:
%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 and to bootstrap,
and to of course, to make it use "version".

AC_INIT([codeblocks], SVN_VERSION)

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