svn commit: r187486 - head/sys/conf

Andrew Thompson thompsa at FreeBSD.org
Tue Jan 20 13:37:42 PST 2009


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


More information about the svn-src-all mailing list