summaryrefslogtreecommitdiffstats
path: root/_scripts
diff options
context:
space:
mode:
Diffstat (limited to '_scripts')
-rw-r--r--_scripts/generate_releases.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/_scripts/generate_releases.lua b/_scripts/generate_releases.lua
index 94ab2c4..001e284 100644
--- a/_scripts/generate_releases.lua
+++ b/_scripts/generate_releases.lua
@@ -9,12 +9,15 @@ for i = 1,#arg do
local f = assert(io.open(arg[i]))
for _,v in pairs(yaml.load(f:read("*a"))) do
+ local y,m,d = v.date:match("(%d+)-(%d+)-(%d+)")
+ v.datestr = os.date("%b %d, %Y", os.time{year=y, month=m, day=d})
v.iso_url = ("%s/%s/releases/%s/%s"):format(url_prefix,
v.branch, v.arch, v.iso)
v.sha256_url = ("%s.sha256"):format(v.iso_url)
v.sha1_url = ("%s.sha256"):format(v.iso_url)
v.size_mb=math.floor(v.size/(1024*1024))
+
local flavor = t[v.flavor]
if flavor == nil then
flavor = { archs = {}}