X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=docs%2Fmanuals%2Fupdate_version.in;h=38831b288133a58be5745a2586ee73ead0d5dbdd;hb=50b537d4dd55637d65992153752164a63e2a90f5;hp=2766245f86fa26dd70ee709ca17d5dd12aaffcec;hpb=fcbba885352d5e6dc601858127ecbc152d35a03c;p=bacula%2Fdocs diff --git a/docs/manuals/update_version.in b/docs/manuals/update_version.in index 2766245f..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` -. ./do_echo -sed -f ${out} version.tex.in >version.tex +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}