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

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

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

Modified Files:
Log Message:
Corrected 'find' GNUism (implicit current directory doesn't work on MacOSX).

Note that the script has problems for filenames with spaces in them.

=== Zope3/stupid_clean 1.4 => 1.5 ===
 #! /bin/sh
-files=`find -name \*.o -o -name \*.so -o -name \*.py[co]`
+# XXX Note! this won't work for filenames that have spaces in them!
+#     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