summaryrefslogtreecommitdiffstats
path: root/_scripts
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-26 11:11:03 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-26 11:11:03 +0100
commit7646e5cdcd8cf34092664cf12641b5f96cf9d4ee (patch)
treeae95455165e178a4b35b979cfc497f4420881d7b /_scripts
parent82040b0fcaa785a10267c276df56bdc934443e66 (diff)
downloadalpine-mksite-7646e5cdcd8cf34092664cf12641b5f96cf9d4ee.tar.bz2
alpine-mksite-7646e5cdcd8cf34092664cf12641b5f96cf9d4ee.tar.xz
downloads: add flavor title and description
We embed the definitions in the lua code for now
Diffstat (limited to '_scripts')
-rw-r--r--_scripts/generate_releases.lua25
1 files changed, 24 insertions, 1 deletions
diff --git a/_scripts/generate_releases.lua b/_scripts/generate_releases.lua
index e3c72c9..e1503fd 100644
--- a/_scripts/generate_releases.lua
+++ b/_scripts/generate_releases.lua
@@ -5,6 +5,24 @@ yaml = require("yaml")
url_prefix="http://wiki.alpinelinux.org/cgi-bin/dl.cgi"
t = { flavors={} }
+flavor_def = {
+ ["alpine"] = {
+ title = "Standard",
+ desc = "Most common used packages included. Use this for"
+ .." routers and servers that run from RAM." },
+ ["alpine-mini"] = {
+ title = "Mini",
+ desc = "Only the basic packages included. Use this for disk"
+ .." installs from network." },
+ ["alpine-vanilla"] = {
+ title = "Vanilla",
+ desc = "Similar to 'Mini' but with a vanilla kernel. This is"
+ .." for troubleshooting kernel issues." },
+ ["alpine-xen"] = {
+ title = "Xen",
+ desc = "Xen Dom0 LiveCD and Xen packages." },
+}
+
for i = 1,#arg do
local f = assert(io.open(arg[i]))
@@ -20,7 +38,12 @@ for i = 1,#arg do
local flavor = t[v.flavor]
if flavor == nil then
- flavor = { archs = {}, flavor_name=v.flavor}
+ local def = flavor_def[v.flavor] or {title="", desc=""}
+ flavor = {
+ archs = {},
+ flavor_title = def.title,
+ flavor_desc = def.desc,
+ }
table.insert(t.flavors, flavor)
end
flavor[v.arch] = v