summaryrefslogtreecommitdiffstats
path: root/sys/conf/newvers.sh
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-01-18 23:21:04 +0000
committerthompsa <thompsa@FreeBSD.org>2009-01-18 23:21:04 +0000
commit7d9738a7b8812098d5c88d26620c468f7ae87df9 (patch)
tree0c1e756fc1d30c16465f1a6c2e3ee65f75363742 /sys/conf/newvers.sh
parent2ff507514a651a86347761c89dda40c80f8b687d (diff)
downloadFreeBSD-src-7d9738a7b8812098d5c88d26620c468f7ae87df9.zip
FreeBSD-src-7d9738a7b8812098d5c88d26620c468f7ae87df9.tar.gz
Also strip the machine arch from SRCDIR in case it is a cross build so
svnversion works.
Diffstat (limited to 'sys/conf/newvers.sh')
-rw-r--r--sys/conf/newvers.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index e3b0030..d9f54b5 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -91,6 +91,7 @@ for dir in /bin /usr/bin /usr/local/bin; do
if [ -x "${dir}/svnversion" ]; then
svnversion=${dir}/svnversion
SRCDIR=${d##*obj}
+ SRCDIR=${SRCDIR##/$MACHINE}
SRCDIR=${SRCDIR%%/sys/*}
break
fi
OpenPOWER on IntegriCloud