out=/tmp/$$
VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${BACULA_SOURCE}/version.h`
DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${BACULA_SOURCE}/version.h`
+echo "New version=${VERSION} New date=${DATE}"
echo "s%@VERSION@%${VERSION}%g" >${out}
echo "s%@DATE@%${DATE}%g" >>${out}
sed -f ${out} manuals/version.tex.in >manuals/version.tex
+sed -f ${out} manuals/bacula.sty.in >manuals/bacula.sty
rm -f ${out}
+echo "Updated version to:"
+cat manuals/version.tex