You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by fu...@apache.org on 2022/08/07 10:48:25 UTC

svn commit: r1903267 - /subversion/trunk/Makefile.in

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



Re: svn commit: r1903267 - /subversion/trunk/Makefile.in

Posted by Nathan Hartman <ha...@gmail.com>.
On Sun, Aug 7, 2022 at 6:48 AM <fu...@apache.org> wrote:
>
> 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


Nice! Thanks for taking care of this. It looks good on code reading.
I'll try to do some builds sometime in the next few days to test this
and other recent changes to the build system.

Cheers,
Nathan

Re: svn commit: r1903267 - /subversion/trunk/Makefile.in

Posted by Nathan Hartman <ha...@gmail.com>.
On Sun, Aug 7, 2022 at 6:48 AM <fu...@apache.org> wrote:
>
> 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


Nice! Thanks for taking care of this. It looks good on code reading.
I'll try to do some builds sometime in the next few days to test this
and other recent changes to the build system.

Cheers,
Nathan