[Zope-Coders] CVS: Zope - Makefile:1.4 stupid_clean:NONE
Fred L. Drake, Jr.
fred@zope.com
Fri, 31 Jan 2003 10:37:29 -0500
Florent Guillaume writes:
> 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).
Steve Alexander writes:
> find . -name "*.o" -exec rm -f {} \;
This works for me as well; the -f can be removed as well since it's
only there in case find doesn't locate any matching files. I've
checked in a change that uses this.
Matt Behrens writes:
> Or, given the guaranteed existence of a working Python, you could
> write a python script that walks and unlinks.
That's another possibility, certainly.
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation