summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 788c2b9a0a..7868846f77 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -215,7 +215,7 @@ def package(vcs, rev, destdir, tmp = nil)
end
# get last revision from previous ChangeLog archive
- last_ChangeLog = Dir["#{v}/doc/ChangeLog-*"].grep(/-\d+\z/).last
+ last_ChangeLog = Dir["#{v}/doc/ChangeLog-*"].grep(/-(\d+)\z/) {|n| [$1.to_i, n]}.max[1]
open(last_ChangeLog) do |f|
f.readline
unless /\Ar(\d+) / =~ f.readline