From df4c7727243f7ca10a3893b9a5ae97bf0b113a2a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 11 Nov 2014 09:10:03 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tool/make-snapshot') diff --git a/tool/make-snapshot b/tool/make-snapshot index 11b9b22207..0eb0ee8cf6 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -214,7 +214,9 @@ def package(rev, destdir) 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| -- cgit v1.2.3