Merge pull request #16355 from AkihiroSuda/lib-ext-tbd

cleaner: remove *.tbd
This commit is contained in:
Mike McQuaid 2023-12-19 11:46:09 +00:00 committed by GitHub
commit db01274744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@
# By default: # By default:
# #
# * removes `.la` files # * removes `.la` files
# * removes `.tbd` files
# * removes `perllocal.pod` files # * removes `perllocal.pod` files
# * removes `.packlist` files # * removes `.packlist` files
# * removes empty directories # * removes empty directories
@ -125,7 +126,7 @@ class Cleaner
next if path.directory? 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 path.unlink
elsif path.symlink? elsif path.symlink?
# Skip it. # Skip it.