SourceDirectory: @srcdir@
BuildDirectory: @regressdir@
Site: @sitename@
-BuildName: bacula-@os@-@dbengine@
+BuildName: bacula-@bversion@-@bdate@-@os@-@dbengine@
DropMethod: xmlrpc
DropSite: http://baculadart.wpi.edu:8081
DropLocation: Bacula
# set the ports used by these tests
BASEPORT=${BASEPORT:-8101}
+srcdir=${BACULA_SOURCE}
dirport=${BASEPORT}
fdport=`expr ${BASEPORT} '+' 1`
sdport=`expr ${BASEPORT} '+' 2`
os=`uname -s`
-
dbengine=`echo ${WHICHDB} | sed -e 's/--with-//' -e 's/=.*//'`
+bversion=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
+bdate=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
# Create sed command script
echo "s%@sbindir@%${cwd}/bin%g" >${out}
echo "s%@fdport@%${fdport}%g" >>${out}
echo "s%@regressdir@%${cwd}%g" >>${out}
echo "s%@dbengine@%${dbengine}%g" >>${out}
-echo "s%@srcdir@%${BACULA_SOURCE}%g" >>${out}
+echo "s%@srcdir@%${srcdir}%g" >>${out}
echo "s%@sitename@%${SITE_NAME}%g" >>${out}
echo "s%@os@%${os}%g" >>${out}
+echo "s%@bversion@%${bversion}%g" >>${out}
+echo "s%@bdate@%${bdate}%g" >>${out}
+
# process .in files with sed script
sed -f ${out} ${cwd}/scripts/bacula-dir.conf.errors.in >${cwd}/scripts/bacula-dir.conf.errors