cleaner: remove *.tbd

For https://github.com/Homebrew/brew/pull/16355#issuecomment-1860642797

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2023-12-18 15:23:14 +09:00
parent 2aa78c9bd0
commit 009318dcaf
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A

View File

@ -5,6 +5,7 @@
# By default:
#
# * removes `.la` files
# * removes `.tbd` files
# * removes `perllocal.pod` files
# * removes `.packlist` files
# * removes empty directories
@ -125,7 +126,7 @@ class Cleaner
next if path.directory?
if path.extname == ".la" || PERL_BASENAMES.include?(path.basename.to_s)
if path.extname == ".la" || path.extname == ".tbd" || PERL_BASENAMES.include?(path.basename.to_s)
path.unlink
elsif path.symlink?
# Skip it.