aboutsummaryrefslogtreecommitdiff
path: root/mkelf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mkelf.lua')
-rw-r--r--mkelf.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkelf.lua b/mkelf.lua
index b22f064..24b10a3 100644
--- a/mkelf.lua
+++ b/mkelf.lua
@@ -47,16 +47,18 @@ local function loadconfig(fn)
segment:normalize()
segment:validate()
end
+ segments = t
end,
sections = function(t)
if type(t) ~= "table" then
error("sections must be a table", 2)
end
for _, section in ipairs(t) do
- section = setmetatable(t, section_mt)
+ section = setmetatable(section, section_mt)
section:normalize()
section:validate()
end
+ sections = t
end,
},
__newindex = function(_, name)