Read version from IDMETA rather than configure.ac.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 15 Nov 2011 09:59:48 +0000 (10:59 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 15 Nov 2011 09:59:48 +0000 (10:59 +0100)
IDMETA
configure.ac

diff --git a/IDMETA b/IDMETA
index 86664dc..74c1fc6 100644 (file)
--- a/IDMETA
+++ b/IDMETA
@@ -1,2 +1,3 @@
 DEBIAN_DIST="wheezy squeeze lenny"
 UBUNTU_DIST="natty maverick lucid karmic"
+VERSION=2.0.50
index 65c4883..99a551f 100644 (file)
@@ -2,7 +2,9 @@ dnl This file is part of the Zebra server.
 dnl   Copyright (C) 1994-2011 Index Data
 dnl
 AC_PREREQ(2.60)
-AC_INIT([idzebra],[2.0.50],[zebra-help@indexdata.dk])
+AC_INIT([idzebra],
+m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
+[zebra-help@indexdata.dk])
 AC_CONFIG_HEADERS([include/config.h])
 AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_AUX_DIR([config])