diff options
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 2 |
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 |