Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 12:48:19 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
Cc:        Garance A Drosehn <gad@FreeBSD.org>
Subject:   Re: cvs commit: src Makefile
Message-ID:  <200402191248.19870.jhb@FreeBSD.org>
In-Reply-To: <xzpeksrw3si.fsf@dwp.des.no>
References:  <200402162018.i1GKIQK4029731@repoman.freebsd.org> <20040219134104.GB14981@ip.net.ua> <xzpeksrw3si.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 19 February 2004 09:18 am, Dag-Erling Sm=F8rgrav 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.

If /usr/obj is a symlink it should stay that way so that a user doesn't hav=
e=20
to relink it every time.  Using /* is probably the best approach.

=2D-=20
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =3D  http://www.FreeBSD.org



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