[Zope-CVS] CVS: Zope3 - stupid_clean:1.6

Florent Guillaume fg@nuxeo.com
Tue, 23 Jul 2002 07:11:33 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv10128

Modified Files:
	stupid_clean 
Log Message:
Use a better idiom (don't fail on large number of files).


=== Zope3/stupid_clean 1.5 => 1.6 ===
 #     Unfortunately find -print0 and xargs -0 don't exist on
 #     some platforms (Solaris for instance) so we can't use them...
 
-files=`find . -name \*.o -o -name \*.so -o -name \*.py[co]`
-if [ ! -z "$files" ] ; then
-    rm $files
-fi
-
-
+find . -name '*.o' -o -name '*.so' -o -name '*.py[co]' | xargs rm -f