summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-14 04:40:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-14 04:40:32 +0000
commita53cb1a05d9b291347362611a76058eb564e5ff8 (patch)
treef799e3b8f051c66b0d2e3fe49b9bc331bd8a80ff /tool
parentbbe047d4c7ae008d8c5bbf7df84c5c31dc810b8c (diff)
update config files
* .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
Diffstat (limited to 'tool')
-rw-r--r--[-rwxr-xr-x]tool/config_files.rb5
-rwxr-xr-xtool/get-config_files3
2 files changed, 3 insertions, 5 deletions
diff --git a/tool/config_files.rb b/tool/config_files.rb
index 998b8b72ec..1551589bf9 100755..100644
--- a/tool/config_files.rb
+++ b/tool/config_files.rb
@@ -1,4 +1,3 @@
-#!/usr/bin/ruby
require 'open-uri'
ConfigFiles = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD"
@@ -7,7 +6,3 @@ def ConfigFiles.download(name, dir = nil)
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
diff --git a/tool/get-config_files b/tool/get-config_files
new file mode 100755
index 0000000000..ea2020bc22
--- /dev/null
+++ b/tool/get-config_files
@@ -0,0 +1,3 @@
+#!/usr/bin/ruby
+require File.expand_path('../config_files', __FILE__)
+ARGV.each {|n| ConfigFiles.download(n)}