ruby-changes:36294
From: nobu <ko1@a...>
Date: Tue, 11 Nov 2014 18:10:11 +0900 (JST)
Subject: [ruby-changes:36294] nobu:r48375 (trunk): make-snapshot: no wait unless needed
nobu 2014-11-11 18:10:03 +0900 (Tue, 11 Nov 2014) New Revision: 48375 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48375 Log: make-snapshot: no wait unless needed * tool/make-snapshot (package): no wait when using already exported source without modification, assuming exported 2 seconds (the lowest timestamp resolution) ago or more. Modified files: trunk/tool/make-snapshot Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 48374) +++ tool/make-snapshot (revision 48375) @@ -214,7 +214,9 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L214 v = n end system(*%W"patch -d #{v} -p0 -i #{$patch_file}") if $patch_file - "take a breath, and go ahead".scan(/./) {|c|print c; sleep(c == "," ? 0.7 : 0.05)}; puts + if !$exported or $patch_file + "take a breath, and go ahead".scan(/./) {|c|print c; sleep(c == "," ? 0.7 : 0.05)}; puts + end def (clean = []).add(n) push(n); n end Dir.chdir(v) do File.open(clean.add("cross.rb"), "w") do |f| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/