rework the dynamic SBOVER because the prior code was getting expanded and breaking.

This commit is contained in:
chess.griffin 2009-01-12 03:58:10 +00:00
parent dc4a0f05b9
commit 1367d419e7

View File

@ -46,7 +46,8 @@ INSTALLPKGS=""
BUILDOPTIONS="" BUILDOPTIONS=""
SBOPKG_CONF="${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}" SBOPKG_CONF="${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}"
CWD="$(pwd)" CWD="$(pwd)"
SBOVER=svn_r$(grep -m1 \$Id$0 |cut -d" " -f4) SBOVER=svn_r$(cat ${0} | grep '$Id: ' | head -1 | \
sed -e 's/^.*Id: sbopkg \([0-9.]*\) .*$/\1/')
config_check () { config_check () {
# Check if config file is there and if so check that it has all # Check if config file is there and if so check that it has all