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

Florent Guillaume fg@nuxeo.com
Fri, 31 Jan 2003 12:32:38 +0100


> 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.

Florent

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