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

download config files

* common.mk (update-config_files): rule to download config files.
* tool/config.guess, tool/config.sub: remove and download from the
  upstream.
* tool/get-config_files: download config files from GNU.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-06-14 04:01:54 +00:00
parent 19faee195a
commit bbe047d4c7
6 changed files with 35 additions and 3294 deletions

13
tool/config_files.rb Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/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
if $0 == __FILE__
ARGV.each {|n| ConfigFiles.download(n)}
end