From be42c354246aca869e17e159b2654a283666fd5e Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 27 Mar 2012 03:11:48 +0000 Subject: * tool/make-snapshot (package): suppress constant overwritting warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tool/make-snapshot b/tool/make-snapshot index 0240a29cd2..3c8e2fa812 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -163,7 +163,10 @@ 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 - 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") -- cgit v1.2.3