Fixed wrong usage rm_rf for cleanup the default gems in sync tool

This commit is contained in:
Hiroshi SHIBATA 2020-05-23 07:27:42 +09:00
Родитель 8d798e7c53
Коммит 36f29b598a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -132,11 +132,11 @@ def sync_default_gems(gem)
case gem case gem
when "rubygems" when "rubygems"
rm_rf(%w[lib/rubygems* test/rubygems]) rm_rf(%w[lib/rubygems lib/rubygems.rb test/rubygems])
cp_r(Dir.glob("#{upstream}/lib/rubygems*"), "lib") cp_r(Dir.glob("#{upstream}/lib/rubygems*"), "lib")
cp_r("#{upstream}/test/rubygems", "test") cp_r("#{upstream}/test/rubygems", "test")
when "bundler" when "bundler"
rm_rf(%w[lib/bundler* libexec/bundler libexec/bundle spec/bundler man/bundle* man/gemfile*]) rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler man/bundle* man/gemfile*])
cp_r(Dir.glob("#{upstream}/bundler/lib/bundler*"), "lib") cp_r(Dir.glob("#{upstream}/bundler/lib/bundler*"), "lib")
cp_r(Dir.glob("#{upstream}/bundler/exe/bundle*"), "libexec") cp_r(Dir.glob("#{upstream}/bundler/exe/bundle*"), "libexec")
cp_r("#{upstream}/bundler/bundler.gemspec", "lib/bundler") cp_r("#{upstream}/bundler/bundler.gemspec", "lib/bundler")
@ -144,7 +144,7 @@ def sync_default_gems(gem)
cp_r(Dir.glob("#{upstream}/bundler/man/*.{1,5,1\.txt,5\.txt,ronn}"), "man") cp_r(Dir.glob("#{upstream}/bundler/man/*.{1,5,1\.txt,5\.txt,ronn}"), "man")
rm_rf(%w[spec/bundler/support/artifice/vcr_cassettes]) rm_rf(%w[spec/bundler/support/artifice/vcr_cassettes])
when "rdoc" when "rdoc"
rm_rf(%w[lib/rdoc* 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")
cp_r("#{upstream}/test/rdoc", "test") cp_r("#{upstream}/test/rdoc", "test")
cp_r("#{upstream}/rdoc.gemspec", "lib/rdoc") cp_r("#{upstream}/rdoc.gemspec", "lib/rdoc")
@ -153,7 +153,7 @@ def sync_default_gems(gem)
rm_rf(%w[lib/rdoc/markdown.kpeg lib/rdoc/markdown/literals.kpeg lib/rdoc/rd/block_pager.ry lib/rdoc/rd/inline_parser.ry]) rm_rf(%w[lib/rdoc/markdown.kpeg lib/rdoc/markdown/literals.kpeg lib/rdoc/rd/block_pager.ry lib/rdoc/rd/inline_parser.ry])
`git checkout lib/rdoc/.document` `git checkout lib/rdoc/.document`
when "reline" when "reline"
rm_rf(%w[lib/reline* test/reline]) rm_rf(%w[lib/reline lib/reline.rb test/reline])
cp_r(Dir.glob("#{upstream}/lib/reline*"), "lib") cp_r(Dir.glob("#{upstream}/lib/reline*"), "lib")
cp_r("#{upstream}/test/reline", "test") cp_r("#{upstream}/test/reline", "test")
cp_r("#{upstream}/reline.gemspec", "lib/reline") cp_r("#{upstream}/reline.gemspec", "lib/reline")
@ -248,7 +248,7 @@ def sync_default_gems(gem)
rm_rf(%w["ext/strscan/regenc.h ext/strscan/regint.h"]) rm_rf(%w["ext/strscan/regenc.h ext/strscan/regint.h"])
`git checkout ext/strscan/depend` `git checkout ext/strscan/depend`
when "racc" when "racc"
rm_rf(%w[lib/racc* ext/racc test/racc]) rm_rf(%w[lib/racc lib/racc.rb ext/racc test/racc])
cp_r(Dir.glob("#{upstream}/lib/racc*"), "lib") cp_r(Dir.glob("#{upstream}/lib/racc*"), "lib")
mkdir_p("ext/racc/cparse") mkdir_p("ext/racc/cparse")
cp_r(Dir.glob("#{upstream}/ext/racc/cparse/*"), "ext/racc/cparse") cp_r(Dir.glob("#{upstream}/ext/racc/cparse/*"), "ext/racc/cparse")
@ -316,7 +316,7 @@ def sync_default_gems(gem)
cp_r("#{upstream}/readline-ext.gemspec", "ext/readline") cp_r("#{upstream}/readline-ext.gemspec", "ext/readline")
`git checkout ext/readline/depend` `git checkout ext/readline/depend`
when "did_you_mean" when "did_you_mean"
rm_rf(%w[lib/did_you_mean* test/did_you_mean]) rm_rf(%w[lib/did_you_mean lib/did_you_mean.rb test/did_you_mean])
cp_r(Dir.glob("#{upstream}/lib/did_you_mean*"), "lib") cp_r(Dir.glob("#{upstream}/lib/did_you_mean*"), "lib")
cp_r("#{upstream}/did_you_mean.gemspec", "lib/did_you_mean") cp_r("#{upstream}/did_you_mean.gemspec", "lib/did_you_mean")
cp_r("#{upstream}/test", "test/did_you_mean") cp_r("#{upstream}/test", "test/did_you_mean")