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

Unified common workflow for default gems.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2018-07-17 11:39:16 +00:00
parent d459572c10
commit c982cbd16a

View file

@ -127,16 +127,6 @@ def sync_default_gems(gem)
`cp -rf ../io-console/lib/console ext/io/console/lib` `cp -rf ../io-console/lib/console ext/io/console/lib`
`cp -f ../io-console/io-console.gemspec ext/io/console` `cp -f ../io-console/io-console.gemspec ext/io/console`
`git checkout ext/io/console/depend` `git checkout ext/io/console/depend`
when "csv"
`rm -rf lib/csv* test/csv`
`cp -rf ../csv/lib/* lib`
`cp -rf ../csv/test/csv test`
`cp -f ../csv/csv.gemspec lib/csv`
when "irb"
`rm -rf lib/irb* test/irb`
`cp -rf ../irb/lib/* lib`
`cp -rf ../irb/test/irb test`
`cp -f ../irb/irb.gemspec lib/irb`
when "webrick" when "webrick"
`rm -rf lib/webrick* test/webrick` `rm -rf lib/webrick* test/webrick`
`cp -rf ../webrick/lib/webrick* lib` `cp -rf ../webrick/lib/webrick* lib`
@ -217,30 +207,24 @@ def sync_default_gems(gem)
`cp -rf ../prime/lib/* lib` `cp -rf ../prime/lib/* lib`
`cp -rf ../prime/test/test_prime.rb test` `cp -rf ../prime/test/test_prime.rb test`
`cp -f ../prime/prime.gemspec lib` `cp -f ../prime/prime.gemspec lib`
when "matrix"
`rm -rf lib/matrix* test/matrix`
`cp -rf ../matrix/lib/* lib`
`cp -rf ../matrix/test/matrix test`
`cp -f ../matrix/matrix.gemspec lib/matrix`
when "ostruct" when "ostruct"
`rm -rf lib/ostruct.rb test/ostruct` `rm -rf lib/ostruct.rb test/ostruct`
`cp -rf ../ostruct/lib/* lib` `cp -rf ../ostruct/lib/* lib`
`cp -rf ../ostruct/test/ostruct test` `cp -rf ../ostruct/test/ostruct test`
`cp -f ../ostruct/ostruct.gemspec lib` `cp -f ../ostruct/ostruct.gemspec lib`
when "rexml" when "rexml", "rss", "matrix", "irb", "csv"
`rm -rf lib/rexml* test/rexml` sync_lib gem
`cp -rf ../rexml/lib/* lib`
`cp -rf ../rexml/test/rexml test`
`cp -f ../rexml/rexml.gemspec lib/rexml`
when "rss"
`rm -rf lib/rss* test/rss`
`cp -rf ../rss/lib/* lib`
`cp -rf ../rss/test/rss test`
`cp -f ../rss/rss.gemspec lib/rss`
else else
end end
end end
def sync_lib(repo)
`rm -rf lib/#{repo}* test/#{repo}`
`cp -rf ../#{repo}/lib/* lib`
`cp -rf ../#{repo}/test/#{repo} test`
`cp -f ../#{repo}/#{repo}.gemspec lib/#{repo}`
end
if ARGV[0] if ARGV[0]
sync_default_gems(ARGV[0]) sync_default_gems(ARGV[0])
else else