From 1367d419e79b3a00cfc9e0622a82701036f74887 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Mon, 12 Jan 2009 03:58:10 +0000 Subject: [PATCH] rework the dynamic SBOVER because the prior code was getting expanded and breaking. --- src/usr/bin/sbopkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 2b53b9b..54b1b5e 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -46,7 +46,8 @@ INSTALLPKGS="" BUILDOPTIONS="" SBOPKG_CONF="${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}" 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 () { # Check if config file is there and if so check that it has all