diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-01-20 21:37:41 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-01-20 21:37:41 +0000 |
commit | e9f20885b0b1b11db397b1bbea8fde81b4766e22 (patch) | |
tree | 375d666884a1bd7b41fdc1895e001f4d0cb3cba3 /sys | |
parent | ed18f3be3dcedd98be97e6b34bd88703f2203fd6 (diff) | |
download | FreeBSD-src-e9f20885b0b1b11db397b1bbea8fde81b4766e22.zip FreeBSD-src-e9f20885b0b1b11db397b1bbea8fde81b4766e22.tar.gz |
Dont assume $MACHINE is set, this breaks for regular builds.
Reported by: pho
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/newvers.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index d9f54b5..f141a8c 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -91,7 +91,9 @@ for dir in /bin /usr/bin /usr/local/bin; do if [ -x "${dir}/svnversion" ]; then svnversion=${dir}/svnversion SRCDIR=${d##*obj} - SRCDIR=${SRCDIR##/$MACHINE} + if [ -n "$MACHINE" ]; then + SRCDIR=${SRCDIR##/$MACHINE} + fi SRCDIR=${SRCDIR%%/sys/*} break fi |