base: fixes travis
[luajson.git] / util / prepareNextRelease.lua
bloba1c82432c05cb7b7d6d18a362799cf0a5135cd1b
1 #!/usr/bin/env lua
2 local from, tover = ...
3 if not from or not tover then
4 print("Format: prepareNextRelease.lua <from-tag> <tover-tag>")
5 return
6 end
8 local f = assert(io.open("docs/ReleaseNotes-" .. tover .. ".txt", "w"))
9 local headLine = "luajson v" .. tover .. " Release Notes"
10 f:write(headLine, "\n", ("="):rep(#headLine), "\n\n")
12 f:write([[
13 User Visible Changes
14 --------------------
16 Plans for next release
17 ----------------------
19 ]])
20 local tailLine = "Updates since " .. from
21 f:write(tailLine, "\n", ("="):rep(#tailLine), "\n\n")
23 local data = assert(io.popen("git shortlog " .. from .. "..HEAD | util/processShortlog.lua", "r"))
24 local tail = data:read("*a")
25 data:close()
27 f:write(tail)
28 f:close()