mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool/sync_default_gems.rb: Check prerequisites
This commit is contained in:
parent
1cef6a0c0c
commit
a93f555699
1 changed files with 3 additions and 0 deletions
|
@ -208,6 +208,9 @@ def sync_default_gems(gem)
|
|||
end
|
||||
|
||||
def sync_lib(repo)
|
||||
unless File.directory?("../#{repo}")
|
||||
abort "Expected '../#{repo}' (#{File.expand_path("../#{repo}")}) to be a directory, but it wasn't."
|
||||
end
|
||||
`rm -rf lib/#{repo}.rb lib/#{repo}/* test/test_#{repo}.rb`
|
||||
`cp -rf ../#{repo}/lib/* lib`
|
||||
tests = if File.directory?("test/#{repo}")
|
||||
|
|
Loading…
Reference in a new issue