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

Steve Alexander steve@cat-box.net
Fri, 31 Jan 2003 13:42:51 +0200


Florent Guillaume wrote:
>>Integrate stupid_clean directly into the Makefile.
>>Remove the stupid_clean script.
>>
>>
>>=== Zope/Makefile 1.3 => 1.4 ===
>>--- Zope/Makefile:1.3	Tue Nov 26 11:17:19 2002
>>+++ Zope/Makefile	Tue Jan 28 15:18:05 2003
>>@@ -9,4 +9,5 @@
>> 	$(PYTHON) utilities/testrunner.py $(TESTOPTS)
>> 
>> clean:
>>-	./stupid_clean
>>+	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 {} \;

--
Steve Alexander