Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 23:21:04 +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: r187413 - head/sys/conf
Message-ID:  <200901182321.n0INL4BI091017@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Sun Jan 18 23:21:04 2009
New Revision: 187413
URL: http://svn.freebsd.org/changeset/base/187413

Log:
  Also strip the machine arch from SRCDIR in case it is a cross build so
  svnversion works.

Modified:
  head/sys/conf/newvers.sh

Modified: head/sys/conf/newvers.sh
==============================================================================
--- head/sys/conf/newvers.sh	Sun Jan 18 21:52:01 2009	(r187412)
+++ head/sys/conf/newvers.sh	Sun Jan 18 23:21:04 2009	(r187413)
@@ -91,6 +91,7 @@ for dir in /bin /usr/bin /usr/local/bin;
 	if [ -x "${dir}/svnversion" ]; then
 		svnversion=${dir}/svnversion
 		SRCDIR=${d##*obj}
+		SRCDIR=${SRCDIR##/$MACHINE}
 		SRCDIR=${SRCDIR%%/sys/*}
 		break
 	fi



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