mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/config_files.rb: rename class ConfigFiles to Downloader.
* tool/get-config_files: ditto. * tool/make-snapshot: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f3e8df133
commit
7a05e0ae9f
4 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Jun 23 18:44:45 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* tool/config_files.rb: rename class ConfigFiles to Downloader.
|
||||
* tool/get-config_files: ditto.
|
||||
* tool/make-snapshot: ditto.
|
||||
|
||||
Mon Jun 23 18:03:13 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* tool/rbinstall.rb: support to install bundle gems.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'open-uri'
|
||||
|
||||
ConfigFiles = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD"
|
||||
def ConfigFiles.download(name, dir = nil)
|
||||
Downloader = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD"
|
||||
def Downloader.download(name, dir = nil)
|
||||
uri = URI(self % name)
|
||||
data = uri.read
|
||||
file = dir ? File.join(dir, name) : name
|
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/ruby
|
||||
require File.expand_path('../config_files', __FILE__)
|
||||
require File.expand_path('../downloader', __FILE__)
|
||||
ARGV.each {|n|
|
||||
STDOUT.print "Downloading #{n}..."; STDOUT.flush
|
||||
begin
|
||||
ConfigFiles.download(n)
|
||||
Downloader.download(n)
|
||||
STDOUT.puts
|
||||
rescue => e
|
||||
STDOUT.puts
|
||||
|
|
|
@ -218,11 +218,11 @@ def package(rev, destdir)
|
|||
%w[config.guess config.sub].each do |conf|
|
||||
next if File.exist?("tool/#{conf}")
|
||||
begin
|
||||
require File.expand_path("config_files", $tooldir)
|
||||
require File.expand_path("downloader", $tooldir)
|
||||
rescue LoadError
|
||||
abort "Error!!! Copy 'config_files.rb' from 'tool' directory of the recent ruby repository!"
|
||||
abort "Error!!! Copy 'downloader.rb' from 'tool' directory of the recent ruby repository!"
|
||||
end
|
||||
ConfigFiles.download(conf, "tool")
|
||||
Downloader.download(conf, "tool")
|
||||
end
|
||||
File.open(clean.add("cross.rb"), "w") do |f|
|
||||
f.puts "Object.__send__(:remove_const, :CROSS_COMPILING) if defined?(CROSS_COMPILING)"
|
||||
|
|
Loading…
Reference in a new issue