diff -r ab11a6a73683 Makefile.pre.in --- a/Makefile.pre.in Wed Nov 02 23:47:58 2011 +0100 +++ b/Makefile.pre.in Thu Nov 03 00:11:00 2011 +0100 @@ -1285,8 +1285,8 @@ # Sanitation targets -- clean leaves libraries, executables and tags # files, which clobber removes as well pycremoval: - -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' - -find $(srcdir) -name '__pycache__' -exec rmdir {} '+' + -find $(srcdir) -name '*.py[co]' -print0 | xargs -0r rm -f + -find $(srcdir) -name '__pycache__' -print0 | xargs -0r rmdir rmtestturds: -rm -f *BAD *GOOD *SKIPPED @@ -1300,15 +1300,15 @@ -rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils clean: pycremoval - find . -name '*.[oa]' -exec rm -f {} ';' - find . -name '*.s[ol]' -exec rm -f {} ';' - find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' - find build -name 'fficonfig.h' -exec rm -f {} ';' || true - find build -name 'fficonfig.py' -exec rm -f {} ';' || true + find . -name '*.[oa]' -print0 | xargs -0r rm -f + find . -name '*.s[ol]' -print0 | xargs -0r rm -f + find . -name '*.so.[0-9]*.[0-9]*' -print0 | xargs -0r rm -f + find build -name 'fficonfig.h' -print0 | xargs -0r rm -f || true + find build -name 'fficonfig.py' -print0 | xargs -0r rm -f || true -rm -f Lib/lib2to3/*Grammar*.pickle profile-removal: - find . -name '*.gc??' -exec rm -f {} ';' + find . -name '*.gc??' -print0 | xargs -0r rm -f clobber: clean profile-removal -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ @@ -1333,7 +1333,7 @@ -o -name '[@,#]*' -o -name '*.old' \ -o -name '*.orig' -o -name '*.rej' \ -o -name '*.bak' ')' \ - -exec rm -f {} ';' + -print0 | xargs -0r rm -f # Check for smelly exported symbols (not starting with Py/_Py) smelly: all