diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 09:10:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 09:10:03 +0000 |
commit | df4c7727243f7ca10a3893b9a5ae97bf0b113a2a (patch) | |
tree | 0e58cd1ae5743735c24c2e161f3debdd304ff78a /tool/make-snapshot | |
parent | f760bb4b39ad9353712ecd284aaa1e1639edeb01 (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
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 4 |
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| |