diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-01-18 23:21:04 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-01-18 23:21:04 +0000 |
commit | 7d9738a7b8812098d5c88d26620c468f7ae87df9 (patch) | |
tree | 0c1e756fc1d30c16465f1a6c2e3ee65f75363742 /sys/conf | |
parent | 2ff507514a651a86347761c89dda40c80f8b687d (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/conf/newvers.sh | 1 |
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 |