From e9c4133f031ccad3a9c0af5fa86494aa4196fb10 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 15 Nov 2011 10:22:33 +0100 Subject: [PATCH] Read version from IDMETA rather than configure.ac. In other words, configure.ac gets its version from IDMETA. --- IDMETA | 1 + configure.ac | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IDMETA b/IDMETA index 86664dc..02717bd 100644 --- a/IDMETA +++ b/IDMETA @@ -1,2 +1,3 @@ DEBIAN_DIST="wheezy squeeze lenny" UBUNTU_DIST="natty maverick lucid karmic" +VERSION=1.2.7 diff --git a/configure.ac b/configure.ac index 42b00fe..e407427 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- 1.7.10.4