Append the svn revision number to the version string automatically.
authorladanyi
Thu, 22 Mar 2007 06:36:50 +0000
changeset 2412086fc76d591d
parent 2411 5820c6cec654
child 2413 21eb3ccdc3df
Append the svn revision number to the version string automatically.
configure.ac
     1.1 --- a/configure.ac	Wed Mar 14 18:58:33 2007 +0000
     1.2 +++ b/configure.ac	Thu Mar 22 06:36:50 2007 +0000
     1.3 @@ -1,6 +1,16 @@
     1.4  dnl Process this file with autoconf to produce a configure script.
     1.5 +
     1.6 +dnl Version information.
     1.7 +m4_define([lemon_version_major], [0])
     1.8 +m4_define([lemon_version_minor], [6])
     1.9 +m4_define([lemon_version_micro], [90])
    1.10 +m4_define([lemon_version_nano], [])
    1.11 +m4_define([lemon_version_tag], [svn])
    1.12 +m4_define([lemon_svn_revision], [m4_normalize(esyscmd([svn info |grep ^Revision |cut -d ' ' -f 2]))])
    1.13 +m4_define([lemon_version], [lemon_version_major().lemon_version_minor()ifelse(lemon_version_micro(), [], [], [.lemon_version_micro()])ifelse(lemon_version_nano(), [], [], [.lemon_version_nano()])ifelse(lemon_version_tag(), [], [], lemon_version_tag(), [svn], [[_]lemon_version_tag()[]lemon_svn_revision()], [[_]lemon_version_tag()])])
    1.14 +
    1.15  AC_PREREQ([2.59])
    1.16 -AC_INIT([LEMON], [svnhead], [etik-ol@cs.elte.hu], [lemon])
    1.17 +AC_INIT([LEMON], [lemon_version()], [etik-ol@cs.elte.hu], [lemon])
    1.18  AC_CONFIG_AUX_DIR([build-aux])
    1.19  AC_CONFIG_MACRO_DIR([m4])
    1.20  AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])