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

IDMETA [changed mode: 0644->0755]
configure.ac

diff --git a/IDMETA b/IDMETA
old mode 100644 (file)
new mode 100755 (executable)
index 86664dc..a64eb51
--- a/IDMETA
+++ b/IDMETA
@@ -1,2 +1,3 @@
 DEBIAN_DIST="wheezy squeeze lenny"
 UBUNTU_DIST="natty maverick lucid karmic"
+VERSION=4.2.20
index b7f3c74..7641cc0 100644 (file)
@@ -1,7 +1,9 @@
 dnl This file is part of the YAZ toolkit.
 dnl Copyright (C) 1995-2011 Index Data
 AC_PREREQ([2.60])
-AC_INIT([yaz],[4.2.20],[yaz-help@indexdata.dk])
+AC_INIT([yaz],
+m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
+[yaz-help@indexdata.dk])
 AC_CONFIG_HEADERS(include/config.h)
 AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_AUX_DIR([config])