summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-11 09:10:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-11 09:10:03 +0000
commitdf4c7727243f7ca10a3893b9a5ae97bf0b113a2a (patch)
tree0e58cd1ae5743735c24c2e161f3debdd304ff78a
parentf760bb4b39ad9353712ecd284aaa1e1639edeb01 (diff)
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
-rwxr-xr-xtool/make-snapshot4
1 files changed, 3 insertions, 1 deletions
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|