Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 12:35:51 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Dag-Erling Sm?rgrav <des@des.no>
Cc:        Garance A Drosehn <gad@FreeBSD.org>
Subject:   Re: cvs commit: src Makefile
Message-ID:  <20040219203551.GC98804@dragon.nuxi.com>
In-Reply-To: <xzpeksrw3si.fsf@dwp.des.no>
References:  <200402162018.i1GKIQK4029731@repoman.freebsd.org> <p06020431bc58344f6847@[128.113.24.47]> <20040219134104.GB14981@ip.net.ua> <xzpeksrw3si.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 19, 2004 at 03:18:53PM +0100, Dag-Erling Sm?rgrav wrote:
> Ruslan Ermilov <ru@FreeBSD.org> writes:
> > Also, why "rm -rf ${.OBJDIR}/*" instead of "rm -rf ${.OBJDIR}"?
> > Is it to preserve a possibly symlinked /usr/obj?
> 
> Probably because if ${.OBJDIR} is a symlink, 'rm -rf ${.OBJDIR}' will
> just remove the symlink and not the actual files.  A better way to
> address this is with 'rm -rf ${.OBJDIR}/', which will remove the
> contents of the directory the symlink points to before removing the
> symlink.

The original is better -- it can be used as a lay-person.
Several of my obj directories are owned by non-root, and using
${.OBJDIR}/* DTRT.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040219203551.GC98804>