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:
parent
19faee195a
commit
bbe047d4c7
6 changed files with 35 additions and 3294 deletions
|
@ -1,3 +1,12 @@
|
|||
Fri Jun 14 13:01:49 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Fri Jun 14 12:21:20 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (RUBY_SAFE_LEVEL_CHECK): suppress warnings
|
||||
|
|
|
@ -1019,9 +1019,15 @@ gdb-ruby: $(PROGRAM) run.gdb PHONY
|
|||
dist:
|
||||
$(BASERUBY) $(srcdir)/tool/make-snapshot tmp $(RELNAME)
|
||||
|
||||
up::
|
||||
up:: update-config_files
|
||||
-$(Q)$(MAKE) $(MFLAGS) REVISION_FORCE=PHONY "$(REVISION_H)"
|
||||
|
||||
update-config_files: $(srcdir)/tool/config.guess $(srcdir)/tool/config.sub
|
||||
$(srcdir)/tool/config.guess:
|
||||
$(Q) $(BASERUBY) -C $(@D) config_files.rb $(@F)
|
||||
$(srcdir)/tool/config.sub:
|
||||
$(Q) $(BASERUBY) -C $(@D) config_files.rb $(@F)
|
||||
|
||||
info: info-program info-libruby_a info-libruby_so info-arch
|
||||
info-program:
|
||||
@echo PROGRAM=$(PROGRAM)
|
||||
|
|
1522
tool/config.guess
vendored
1522
tool/config.guess
vendored
File diff suppressed because it is too large
Load diff
1771
tool/config.sub
vendored
1771
tool/config.sub
vendored
File diff suppressed because it is too large
Load diff
13
tool/config_files.rb
Executable file
13
tool/config_files.rb
Executable 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue