From e9f20885b0b1b11db397b1bbea8fde81b4766e22 Mon Sep 17 00:00:00 2001 From: thompsa Date: Tue, 20 Jan 2009 21:37:41 +0000 Subject: Dont assume $MACHINE is set, this breaks for regular builds. Reported by: pho --- sys/conf/newvers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/conf') 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 -- cgit v1.1