From fc4d0f87d53f905a5a8d1fe9a87545684bafa1fb Mon Sep 17 00:00:00 2001 From: slakmagik Date: Sun, 15 Mar 2009 08:07:50 +0000 Subject: [PATCH] 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 --- src/usr/sbin/sbopkg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 2823667..961de91 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -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