2 local io
= require("io")
3 local from
, tover
= ...
4 if not from
or not tover
then
5 print("Format: prepareNextRelease.lua <from-tag> <tover-tag>")
9 local f
= assert(io
.open("docs/ReleaseNotes-" .. tover
.. ".txt", "w"))
10 local headLine
= "luajson v" .. tover
.. " Release Notes"
11 f
:write(headLine
, "\n", ("="):rep(#headLine
), "\n\n")
17 Plans for next release
18 ----------------------
21 local tailLine
= "Updates since " .. from
22 f
:write(tailLine
, "\n", ("="):rep(#tailLine
), "\n\n")
24 local data
= assert(io
.popen("git shortlog " .. from
.. "..HEAD | util/processShortlog.lua", "r"))
25 local tail
= data
:read("*a")