summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-14 04:01:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-14 04:01:54 +0000
commitbbe047d4c7ae008d8c5bbf7df84c5c31dc810b8c (patch)
treec304504a72ee45f5bcadc6d17f93bf5f71b038f9 /tool/make-snapshot
parent19faee195a7f5a9cc5e24b64cc655f79c10ac872 (diff)
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
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 32ae1722a7..4d5cfc4c4f 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -11,6 +11,7 @@ $exported = nil if $exported == ""
$archname = nil if $archname == ""
$keep_temp ||= nil
$patch_file ||= nil
+$tooldir = File.expand_path("..", __FILE__)
def usage
<<USAGE
@@ -174,6 +175,11 @@ def package(rev, destdir)
"take a breath, and go ahead".scan(/./) {|c|print c; sleep(c == "," ? 0.7 : 0.05)}; puts
def (clean = []).add(n) push(n); n end
Dir.chdir(v) do
+ %w[config.guess config.sub].each do |conf|
+ next if File.exist?("tool/#{conf}")
+ require File.expand_path("config_files", $tooldir)
+ ConfigFiles.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)"
f.puts "CROSS_COMPILING=true"