Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2013 10:26:42 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253956 - head/sys/conf
Message-ID:  <201308051026.r75AQgfp038315@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Mon Aug  5 10:26:42 2013
New Revision: 253956
URL: http://svnweb.freebsd.org/changeset/base/253956

Log:
  Redirect svnversion stderr to /dev/null if we cannot determine
  the tree version, for example if the tree is checked out with an
  outdated svn from ports, but the base system svnlite is built.
  
  Approved by:	kib (mentor)

Modified:
  head/sys/conf/newvers.sh

Modified: head/sys/conf/newvers.sh
==============================================================================
--- head/sys/conf/newvers.sh	Mon Aug  5 09:53:48 2013	(r253955)
+++ head/sys/conf/newvers.sh	Mon Aug  5 10:26:42 2013	(r253956)
@@ -116,7 +116,7 @@ if [ -d "${SYSDIR}/../.git" ] ; then
 fi
 
 if [ -n "$svnversion" ] ; then
-	svn=`cd ${SYSDIR} && $svnversion`
+	svn=`cd ${SYSDIR} && $svnversion 2>/dev/null`
 	case "$svn" in
 	[0-9]*)	svn=" r${svn}" ;;
 	*)	unset svn ;;



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