diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-01-18 23:21:04 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-01-18 23:21:04 +0000 |
commit | 07707a24284aa1aed3423f22ef671835cf5ff906 (patch) | |
tree | 0c1e756fc1d30c16465f1a6c2e3ee65f75363742 /sys/conf/newvers.sh | |
parent | 67898a2385247f3a3b5dcaa3e08669641d086cd2 (diff) | |
download | src-07707a24284aa1aed3423f22ef671835cf5ff906.tar.gz src-07707a24284aa1aed3423f22ef671835cf5ff906.zip |
Also strip the machine arch from SRCDIR in case it is a cross build so
svnversion works.
Notes
Notes:
svn path=/head/; revision=187413
Diffstat (limited to 'sys/conf/newvers.sh')
-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 e3b003003793..d9f54b5b5572 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 |