Subject: Re: WARNING
To: Rafal Boni <rafal@mediaone.net>
From: Todd Vierling <tv@wasabisystems.com>
List: current-users
Date: 11/13/2001 12:22:59
On Tue, 13 Nov 2001, Rafal Boni wrote:

: -> No, you can do that.  In fact, -r is a good sanity check (that behavior is
: -> how Lennart found the cpp problem so quickly).
:
: However, it seems to be a Bad Idea if DESTDIR='/' (it's probably OK if unset)
: as it gets added to the list of directories to `rm -rf'.  `Oops!!'.

build.sh, around line 262:

if [ -z "$DESTDIR" ] || [ "$DESTDIR" = "/" ]; then
	...
else
	removedirs="$removedirs $DESTDIR"
fi

DESTDIR is not added to "removedirs" if it is set to / or empty.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/