Author: futatuki
Date: Sun Aug  7 10:48:25 2022
New Revision: 1903267

URL: http://svn.apache.org/viewvc?rev=1903267&view=rev
Log:
* Makefile.in
  (fast-clean, clean-swig-py): Remove __pycache__ directory as well as *.pyc

Suggested by: hartmannathan

Modified:
    subversion/trunk/Makefile.in

Modified: subversion/trunk/Makefile.in
URL: 
http://svn.apache.org/viewvc/subversion/trunk/Makefile.in?rev=1903267&r1=1903266&r2=1903267&view=diff
==============================================================================
--- subversion/trunk/Makefile.in (original)
+++ subversion/trunk/Makefile.in Sun Aug  7 10:48:25 2022
@@ -457,10 +457,11 @@ fast-clean: doc-clean
         done
        echo $(CLEAN_FILES) | xargs rm -f --
        for d in $(CTYPES_PYTHON_SRC_DIR) $(SWIG_PY_SRC_DIR) $(SWIG_PY_DIR) \
-               $(abs_srcdir)/build 
$(top_srcdir)/subversion/tests/cmdline/svntest; \
+               $(abs_srcdir)/build $(top_srcdir)/subversion/tests/cmdline; \
        do \
          test -e $$d || continue; \
-         find $$d -name "*.pyc" -exec rm {} ';'; \
+         find $$d '(' -name "__pycache__" -prune -o -name "*.pyc" ')' \
+           -exec rm -rf {} ';'; \
        done
 
 # clean everything, returning to before './configure' was run.
@@ -969,7 +970,8 @@ clean-swig-py:
        for d in $(SWIG_PY_SRC_DIR) $(SWIG_PY_DIR); \
        do \
          test -e $$d || continue; \
-         find $$d -name "*.pyc" -exec rm {} ';'; \
+         find $$d '(' -name "__pycache__" -prune -o -name "*.pyc" ')' \
+           -exec rm -rf {} ';'; \
        done
 
 extraclean-swig-py: clean-swig-py


Reply via email to