Subject: Re: cleaning out xsrc
To: Frederick Bruckman <fredb@immanent.net>
From: Andreas Kahari <ak+netbsd@freeshell.org>
List: current-users
Date: 03/07/2004 17:24:12
On Sun, Mar 07, 2004 at 11:15:29AM -0600, Frederick Bruckman wrote:
> On Sun, 7 Mar 2004, Andreas Kahari wrote:
>
> > On Sun, Mar 07, 2004 at 11:43:43AM -0500, Steve Bellovin wrote:
> > > In my /usr/xsrc, I have lots of .depend files and Makefiles. Here's a
> > > partial sample from a 'cvs update':
> > >
> > > ? xc/lib/Xdmcp/.depend
> > > ? xc/lib/Xdmcp/Makefile
> > > ? xc/lib/Xdpms/.depend
> > > ? xc/lib/Xdpms/Makefile
> > >
> > > What's the right way to clean them out? 'make clean' in /usr/xsrc
> > > doesn't work:
> >
> > I'm not sure about "right", but one way to do it would be to do this:
> >
> > cd /usr/xsrc
> > sed -n 's/^\? //p' < /tmp/cvsoutput | xargs sudo rm -rf
>
> Why not simply "make cleandir"????
That'll work, of course, assuming the current Makefile knows
about all the files it needs to remove to get a clean tree.
--
Andreas Kähäri |[][]|
|][][|
East Anglia |[][]|
England |][][|