diff options
author | Petri Lehtinen <petri@digip.org> | 2011-11-05 19:04:24 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2011-11-05 19:17:08 (GMT) |
commit | bc74ee039c83e00b815b37dca81d115b7291e151 (patch) | |
tree | 9966129a6deab6baf0d5c414ea3cffb255d87923 /Makefile.pre.in | |
parent | 395ca7238015eb5aacadde2917c185cba5fea726 (diff) | |
download | cpython-bc74ee039c83e00b815b37dca81d115b7291e151.zip cpython-bc74ee039c83e00b815b37dca81d115b7291e151.tar.gz cpython-bc74ee039c83e00b815b37dca81d115b7291e151.tar.bz2 |
Remove __pycache__ directories correctly on OpenBSD
The find utility of OpenBSD doesn't support the "-exec cmd {} +"
action. Change it to use "-depth -exec cmd {} ;" instead.
Also, remove __pycache__ before *.py[co], as most bytecode files are
in __pycache__ directories. Only those generated by Python 2 under
Doc/tools are not.
Closes #13326.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index cde3af0..3ff5f26 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1231,8 +1231,8 @@ TAGS:: # Sanitation targets -- clean leaves libraries, executables and tags # files, which clobber removes as well pycremoval: + -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';' -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' - -find $(srcdir) -name '__pycache__' -exec rmdir {} '+' rmtestturds: -rm -f *BAD *GOOD *SKIPPED |