ruby-changes:23094
From: nobu <ko1@a...>
Date: Tue, 27 Mar 2012 12:11:58 +0900 (JST)
Subject: [ruby-changes:23094] nobu:r35144 (trunk): * tool/make-snapshot (package): suppress constant overwritting warnings.
nobu 2012-03-27 12:11:48 +0900 (Tue, 27 Mar 2012) New Revision: 35144 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35144 Log: * tool/make-snapshot (package): suppress constant overwritting warnings. Modified files: trunk/tool/make-snapshot Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 35143) +++ tool/make-snapshot (revision 35144) @@ -163,7 +163,10 @@ "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 - File.open(clean.add("cross.rb"), "w") {|f| f.puts "CROSS_COMPILING=true"} + 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" + end unless File.exist?("configure") print "creating configure..." unless system("autoconf") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/