1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix syncing bundler man pages

`rm_rf` does not support globbing, so not all files get deleted.
This commit is contained in:
David Rodríguez 2020-09-01 13:46:53 +02:00 committed by Hiroshi SHIBATA
parent 8d1de3154c
commit 6b43200948
Notes: git 2020-09-01 21:18:38 +09:00

View file

@ -80,7 +80,7 @@ def sync_default_gems(gem)
cp_r(Dir.glob("#{upstream}/lib/rubygems*"), "lib")
cp_r("#{upstream}/test/rubygems", "test")
when "bundler"
rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler man/bundle* man/gemfile*])
rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler] + Dir.glob("man/{bundle*,gemfile*}"))
cp_r(Dir.glob("#{upstream}/bundler/lib/bundler*"), "lib")
cp_r(Dir.glob("#{upstream}/bundler/exe/bundle*"), "libexec")
cp_r("#{upstream}/bundler/bundler.gemspec", "lib/bundler")