[Zope-Coders] Re: [Zope-Checkins] CVS: Zope - Makefile:1.4 stupid_clean:NONE

Florent Guillaume fg@nuxeo.com
31 Jan 2003 12:51:31 +0100


On Fri, 2003-01-31 at 12:42, Steve Alexander wrote:
> >>+	find . -name '*.o' -o -name '*.so' -o -name '*.py[co]' \
> >>+	    -o -name 'core*' | xargs rm -f
> > 
> > I still am a bit concerned that this will fail on, for instance, MacOSX,
> > where directory names often contain spaces.
> > 
> > Unfortunately the correct way to do it, by using find -print0 and
> > xargs -0, is known to not work on some plateforms, for instance
> > Solaris (I'm told).
> > 
> > So I don't know what to do.
> 
> find . -name "*.o" -exec rm -f {} \;

Yes, a bit slower but safer.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com