From f76552d85526f8e28915404482135d64433a8e05 Mon Sep 17 00:00:00 2001 From: dogcow Date: Mon, 19 Jun 2006 18:12:30 +0000 Subject: [PATCH] Huzzah. /bin/pwd -P, instead of silently failing, now returns an error code on many linuces I've tried. If so, bail and invoke /bin/pwd sans argument. --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index aadfffaa7426..0131ef8f8193 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.146 2006/02/03 12:29:41 apb Exp $ +# $NetBSD: build.sh,v 1.147 2006/06/19 18:12:30 dogcow Exp $ # # Copyright (c) 2001-2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -84,10 +84,10 @@ initdefaults() # presence of symlinks. Unsetting PWD is simpler than changing # every occurrence of pwd to use -P. # - # XXX Except that doesn't work on Solaris. + # XXX Except that doesn't work on Solaris. Or many Linuces. # unset PWD - TOP=$(/bin/pwd -P 2>/dev/null) + TOP=$(/bin/pwd -P 2>/dev/null || /bin/pwd 2>/dev/null) # Set defaults. # @@ -868,7 +868,7 @@ createmakewrapper() eval cat <