From: Kern Sibbald Date: Mon, 13 Oct 2008 16:07:11 +0000 (+0000) Subject: Shorten FreeBSD name too X-Git-Tag: Release-3.0.0~819 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22d6315c31abc869d3d5789f23ebe0b44664e282;p=bacula%2Fbacula Shorten FreeBSD name too git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7776 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/create_sed b/regress/scripts/create_sed index 4683303a79..9baebcdca3 100755 --- a/regress/scripts/create_sed +++ b/regress/scripts/create_sed @@ -20,11 +20,12 @@ sdport=`expr ${BASEPORT} '+' 2` db_name=${db_name:-"regress"} db_user=${db_user:-"regress"} db_password=${db_password:-""} -# Drop Linux from OS to shorten name -if test `uname -s` = "Linux"; then +os=`uname -s` +# Drop Linux or FreeBSD from OS to shorten name +if test ${os} = "Linux" -o ${os} = "FreeBSD"; then os=`./scripts/get-os` else - os=`uname -s`-`./scripts/get-os` + os=${os}-`./scripts/get-os` fi dbengine=`echo ${WHICHDB} | sed -e 's/--with-//' -e 's/=.*//'` bversion=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`