summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-08-05 10:26:42 +0000
committergjb <gjb@FreeBSD.org>2013-08-05 10:26:42 +0000
commita35ede59d821b3201519dfd2c5da8fb12ea33592 (patch)
treea1a8fb63c09bdb6af3be8ba3e58fb76a3be38a23 /sys/conf
parent899ab645146d3b9d10334951eb65770773ed3630 (diff)
downloadFreeBSD-src-a35ede59d821b3201519dfd2c5da8fb12ea33592.zip
FreeBSD-src-a35ede59d821b3201519dfd2c5da8fb12ea33592.tar.gz
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)
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/newvers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 94bfef1..c16ab0d 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -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 ;;
OpenPOWER on IntegriCloud