3 # Script file to update the Bacula version
4 # It only needs to be run once for each version.
5 # Alternatively, you can simply edit the file
6 # manuals/version.tex and put the correct version and date
8 # The only thing this script does is to create the file:
9 # manuals/version.tex which contains the VERSION and the DATE
12 BACULA_SOURCE=$HOME/bee/bacula/bacula/src
14 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${BACULA_SOURCE}/version.h`
15 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${BACULA_SOURCE}/version.h`
16 echo "s%@VERSION@%${VERSION}%g" >${out}
17 echo "s%@DATE@%${DATE}%g" >>${out}
18 sed -f ${out} manuals/version.tex.in >manuals/version.tex
19 sed -f ${out} manuals/bacula.sty.in >manuals/bacula.sty