mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
a53cb1a05d
* .travis.yml (before_script): update config files. * common.mk ($(srcdir)/tool/config.{guess,sub}): use get-config_files. * tool/config_files.rb: split get-config_files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8 lines
280 B
Ruby
8 lines
280 B
Ruby
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)
|
|
data = open(self % name, &:read)
|
|
file = dir ? File.join(dir, name) : name
|
|
open(file, "wb", 0755) {|f| f.write(data)}
|
|
end
|