]> git.sur5r.net Git - bacula/docs/commitdiff
Fix autoconf VERSION scan
authorKern Sibbald <kern@sibbald.com>
Tue, 13 Mar 2012 13:57:02 +0000 (14:57 +0100)
committerKern Sibbald <kern@sibbald.com>
Tue, 13 Mar 2012 13:57:02 +0000 (14:57 +0100)
docs/autoconf/configure.in

index 7a9d11e9f54ab3dfb618dac30386216d92b8737e..270f78eb60dc3e8786fbd503e56f2d64dc6b2dac 100644 (file)
@@ -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