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.
This commit is contained in:
parent
395ca72380
commit
bc74ee039c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue