[Python-checkins] cpython (2.7): Closes #18312: 'make distclean' no longer deletes files in dot-directories.

eric.smith python-checkins at python.org
Tue Jul 2 15:08:49 CEST 2013


http://hg.python.org/cpython/rev/5896f887a93a
changeset:   84431:5896f887a93a
branch:      2.7
parent:      84428:20b59fec1123
user:        Eric V. Smith <eric at trueblade.com>
date:        Tue Jul 02 09:02:03 2013 -0400
summary:
  Closes #18312: 'make distclean' no longer deletes files in dot-directories.

files:
  Makefile.pre.in |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1295,11 +1295,11 @@
 		Modules/ld_so_aix Modules/python.exp Misc/python.pc
 	-rm -f python*-gdb.py
 	-rm -f pybuilddir.txt
-	find $(srcdir) '(' -name '*.fdc' -o -name '*~' \
-			   -o -name '[@,#]*' -o -name '*.old' \
-			   -o -name '*.orig' -o -name '*.rej' \
-			   -o -name '*.bak' ')' \
-			   -exec rm -f {} ';'
+	find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
+				     -o -name '[@,#]*' -o -name '*.old' \
+				     -o -name '*.orig' -o -name '*.rej' \
+				     -o -name '*.bak' ')' \
+				     -exec rm -f {} ';'
 
 # Check for smelly exported symbols (not starting with Py/_Py)
 smelly: all

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list