File: prepareNextRelease.lua

package info (click to toggle)
lua-json 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 688 kB
  • sloc: makefile: 71; php: 3
file content (29 lines) | stat: -rwxr-xr-x 728 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env lua
local io = require("io")
local from, tover = ...
if not from or not tover then
	print("Format: prepareNextRelease.lua <from-tag> <tover-tag>")
	return
end

local f = assert(io.open("docs/ReleaseNotes-" .. tover .. ".txt", "w"))
local headLine = "luajson v" .. tover .. " Release Notes"
f:write(headLine, "\n", ("="):rep(#headLine), "\n\n")

f:write([[
User Visible Changes
--------------------

Plans for next release
----------------------

]])
local tailLine = "Updates since " .. from
f:write(tailLine, "\n", ("="):rep(#tailLine), "\n\n")

local data = assert(io.popen("git shortlog " .. from .. "..HEAD | util/processShortlog.lua", "r"))
local tail = data:read("*a")
data:close()

f:write(tail)
f:close()