diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-15 02:16:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-15 11:22:32 +0900 |
commit | df4a4bd88c98a0b966d88ae825c14e891c5cfba2 (patch) | |
tree | ac3d891f44d4b7cda5312bd94c81224f838bd33a /tool/make-snapshot | |
parent | 1edcfd610703fb6f773e8f31f88f8ca920bda1ac (diff) | |
download | ruby-df4a4bd88c98a0b966d88ae825c14e891c5cfba2.tar.gz |
make-snapshot: export ChangeLog from srcdir
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 cdda44c67d..28fc724a87 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -278,7 +278,7 @@ def package(vcs, rev, destdir, tmp = nil) v = "ruby" puts "Exporting #{rev}@#{revision}" exported = tmp ? File.join(tmp, v) : v - unless vcs = vcs.export(revision, url, exported, true) {|line| print line} + unless vcs.export(revision, url, exported, true) {|line| print line} warn("Export failed") return end @@ -348,7 +348,7 @@ def package(vcs, rev, destdir, tmp = nil) n = "ruby-#{version}-#{tag}" end File.directory?(n) or File.rename v, n - vcs.chdir(File.expand_path(v = n)) + v = n system(*%W"patch -d #{v} -p0 -i #{$patch_file}") if $patch_file def (clean = []).add(n) push(n); n end |