Ignore LUCENSE files of standard libraries for sync target

This commit is contained in:
Hiroshi SHIBATA 2021-11-16 20:10:43 +09:00
parent cc3afdb165
commit 84fdaaab46
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -104,11 +104,19 @@ def sync_default_gems(gem)
cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/rubocop_gems*"), "tool/bundler") cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/rubocop_gems*"), "tool/bundler")
cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/standard_gems*"), "tool/bundler") cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/standard_gems*"), "tool/bundler")
rm_rf(%w[spec/bundler/support/artifice/vcr_cassettes]) rm_rf(%w[spec/bundler/support/artifice/vcr_cassettes])
rm_rf("lib/bundler/vendor/thor/LICENSE.md") license_files = %w[
rm_rf("lib/rubygems/resolver/molinillo/LICENSE") lib/bundler/vendor/thor/LICENSE.md
rm_rf("lib/bundler/vendor/molinillo/LICENSE") lib/rubygems/resolver/molinillo/LICENSE
rm_rf("lib/bundler/vendor/connection_pool/LICENSE") lib/bundler/vendor/molinillo/LICENSE
rm_rf("lib/bundler/vendor/net-http-persistent/README.rdoc") lib/bundler/vendor/connection_pool/LICENSE
lib/bundler/vendor/net-http-persistent/README.rdoc
lib/bundler/vendor/fileutils/LICENSE.txt
lib/bundler/vendor/tsort/LICENSE.txt
lib/bundler/vendor/uri/LICENSE.txt
lib/rubygems/optparse/COPYING
lib/rubygems/tsort/LICENSE.txt
]
rm_rf license_files
when "rdoc" when "rdoc"
rm_rf(%w[lib/rdoc lib/rdoc.rb test/rdoc libexec/rdoc libexec/ri]) rm_rf(%w[lib/rdoc lib/rdoc.rb test/rdoc libexec/rdoc libexec/ri])
cp_r(Dir.glob("#{upstream}/lib/rdoc*"), "lib") cp_r(Dir.glob("#{upstream}/lib/rdoc*"), "lib")