From 50b537d4dd55637d65992153752164a63e2a90f5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 6 Aug 2012 22:13:30 +0200 Subject: [PATCH] Fix scan source for version --- docs/autoconf/configure.in | 4 ++-- docs/manuals/update_version.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/autoconf/configure.in b/docs/autoconf/configure.in index 7a9d11e9..270f78eb 100644 --- a/docs/autoconf/configure.in +++ b/docs/autoconf/configure.in @@ -33,8 +33,8 @@ if test "x$bacula" = "x" ; then fi dnl Bacula version -VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${bacula}/src/version.h` -DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' ${bacula}/src/version.h` +VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${bacula}/src/version.h` +DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${bacula}/src/version.h` AC_SUBST(VERSION)dnl AC_SUBST(DATE)dnl if test "x$VERSION" = "x" ; then diff --git a/docs/manuals/update_version.in b/docs/manuals/update_version.in index 00122801..38831b28 100644 --- a/docs/manuals/update_version.in +++ b/docs/manuals/update_version.in @@ -3,8 +3,8 @@ # Script file to update the Bacula version # out=/tmp/$$ -VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' @bacula@/src/version.h` -DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' @bacula@/src/version.h` +VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' @bacula@/src/version.h` +DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' @bacula@/src/version.h` . @BUILD_DIR@/manuals/do_echo sed -f ${out} @BUILD_DIR@/manuals/version.tex.in >version.tex rm -f ${out} -- 2.39.5