]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/update_version.in
Fix scan source for version
[bacula/docs] / docs / manuals / update_version.in
index 2766245f86fa26dd70ee709ca17d5dd12aaffcec..38831b288133a58be5745a2586ee73ead0d5dbdd 100644 (file)
@@ -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}