diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-01 22:16:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-01 23:22:50 +0900 |
commit | fd4aad6d41da016f3a7aa7d3f130c39fe7bf082b (patch) | |
tree | cc3afe7991cac508ef8fa56fc867da5f976e1156 /tool/make-snapshot | |
parent | d8260bc872c8c562fff90278bb21815b9e7946e5 (diff) |
Support packaging different branch/tag
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index ebf926f77f..721636175e 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -259,7 +259,7 @@ def package(vcs, rev, destdir, tmp = nil) v = "ruby" puts "Exporting #{rev}@#{revision}" exported = tmp ? File.join(tmp, v) : v - unless vcs.export(revision, url, exported, true) {|line| print line} + unless vcs = vcs.export(revision, url, exported, true) {|line| print line} warn("Export failed") return end @@ -330,7 +330,7 @@ def package(vcs, rev, destdir, tmp = nil) n = "ruby-#{version}-#{tag}" end File.directory?(n) or File.rename v, n - v = n + vcs.chdir(File.expand_path(v = n)) end system(*%W"patch -d #{v} -p0 -i #{$patch_file}") if $patch_file if !$exported or $patch_file |