Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 21:37:41 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187486 - head/sys/conf
Message-ID:  <200901202137.n0KLbfKU057259@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Tue Jan 20 21:37:41 2009
New Revision: 187486
URL: http://svn.freebsd.org/changeset/base/187486

Log:
  Dont assume $MACHINE is set, this breaks for regular builds.
  
  Reported by:	pho

Modified:
  head/sys/conf/newvers.sh

Modified: head/sys/conf/newvers.sh
==============================================================================
--- head/sys/conf/newvers.sh	Tue Jan 20 20:41:41 2009	(r187485)
+++ head/sys/conf/newvers.sh	Tue Jan 20 21:37:41 2009	(r187486)
@@ -91,7 +91,9 @@ for dir in /bin /usr/bin /usr/local/bin;
 	if [ -x "${dir}/svnversion" ]; then
 		svnversion=${dir}/svnversion
 		SRCDIR=${d##*obj}
-		SRCDIR=${SRCDIR##/$MACHINE}
+		if [ -n "$MACHINE" ]; then
+			SRCDIR=${SRCDIR##/$MACHINE}
+		fi
 		SRCDIR=${SRCDIR%%/sys/*}
 		break
 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901202137.n0KLbfKU057259>