Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/build.sh,v rcsdiff: /ftp/cvs/cvsroot/src/build.sh,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.63 retrieving revision 1.64 diff -u -p -r1.63 -r1.64 --- src/build.sh 2002/07/09 06:36:16 1.63 +++ src/build.sh 2002/09/03 22:03:48 1.64 @@ -1,5 +1,5 @@ #! /bin/sh -# $NetBSD: build.sh,v 1.63 2002/07/09 06:36:16 pooka Exp $ +# $NetBSD: build.sh,v 1.64 2002/09/03 22:03:48 bjh21 Exp $ # # Top level build wrapper, for a system containing no tools. # @@ -16,6 +16,10 @@ bomb () { [ -d usr.bin/make ] || bomb "build.sh must be run from the top source level" [ -f share/mk/bsd.own.mk ] || bomb "src/share/mk is missing; please re-fetch the source tree" +# If $PWD is a valid name of the current directory, POSIX mandates that pwd +# return it by default which causes problems in the presence of symlinks. +# Unsetting PWD is simpler than changing every occurrence of pwd to use -P. +unset PWD TOP=`pwd` getarch () { @@ -376,7 +380,7 @@ fi eval cat <