Commit dc4720fa authored by Florent Guillaume's avatar Florent Guillaume

Corrected 'find' GNUism, and use more idiomatic syntax for the clean.

Note that we'll fail on filenames with spaces or quotes in them.
parent 922b4347
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
# "python setup.py clean" doesn't work with a --inplace build, so use # "python setup.py clean" doesn't work with a --inplace build, so use
# this instead (copied from the Zope3 tree). # this instead (copied from the Zope3 tree).
files=`find -name \*.o -o -name \*.so -o -name \*.py[co] -o -name core\*` # XXX Note! this won't work for filenames that have spaces in them!
if [ ! -z "$files" ] ; then # Unfortunately find -print0 and xargs -0 don't exist on
rm $files # some platforms (Solaris for instance) so we can't use them...
fi
find . -name '*.o' -o -name '*.so' -o -name '*.py[co]' \
-o -name 'core*' | xargs rm -f
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment