Read version from IDMETA rather than configure.ac.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 15 Nov 2011 09:22:33 +0000 (10:22 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 15 Nov 2011 09:22:33 +0000 (10:22 +0100)
In other words, configure.ac gets its version from IDMETA.

IDMETA
configure.ac

diff --git a/IDMETA b/IDMETA
index 86664dc..02717bd 100644 (file)
--- a/IDMETA
+++ b/IDMETA
@@ -1,2 +1,3 @@
 DEBIAN_DIST="wheezy squeeze lenny"
 UBUNTU_DIST="natty maverick lucid karmic"
+VERSION=1.2.7
index 42b00fe..e407427 100644 (file)
@@ -1,7 +1,9 @@
 dnl This file is part of yazpp
 dnl Copyright (C) 1998-2011 Index Data
 AC_PREREQ(2.60)
-AC_INIT([yazpp],[1.2.7],[adam@indexdata.dk])
+AC_INIT([yazpp],
+m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
+[adam@indexdata.dk])
 AC_CONFIG_HEADERS([include/config.h])
 AC_CONFIG_SRCDIR(configure.ac)
 AC_CONFIG_AUX_DIR([config])