Simplified the way SBOVER is assigned to, adding Revision to the list of the

script's svn:keywords and handing subversion's expansion of that to cut
This commit is contained in:
slakmagik 2009-03-15 08:07:50 +00:00
parent 64fd6c526a
commit fc4d0f87d5

View File

@ -42,8 +42,7 @@ unset BUILDPKGS INSTALLPKGS BUILDOPTIONS LAST_USER_QUEUE_ON_DISK QUIET
SBOPKG_CONF="${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}"
SBOPKG_RENAMES="${SBOPKG_RENAMES:-/etc/sbopkg/sbopkg-renames}"
CWD="$(pwd)"
SBOVER=svn_r$(cat ${0} | grep '$Id: ' | head -1 | \
sed -e 's/^.*Id: sbopkg \([0-9.]*\) .*$/\1/')
SBOVER=svn_r$(cut -d' ' -f2 <<<"\$Revision$")
dialog_refresh_workaround() {
# Dialog has refresh problems on some terminals (currently known are