ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit 45533c4749a9dae392970cb409ca00490d73bbf1
parent 73cba442d66e6c03eb359ded544a3539080b31de
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Wed, 28 Mar 2018 08:56:50 -0400

Split dependencies table with sub-tables.

Diffstat:
Mcornelius | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/cornelius b/cornelius @@ -5,13 +5,12 @@ local config = require "config" -if arg[1] == "install" then - for i, dependency in ipairs(config.dependencies) do - os.execute ("luarocks install --tree lua_modules " .. dependency) - end - +if arg[1] == "install" and _VERSION:match("%d+%.%d+") >= config.dependencies.lua then + for i, dependency in ipairs(config.dependencies.modules) do + os.execute ("luarocks install --tree lua_modules " .. dependency) + end elseif arg[1] == "build" then os.execute("lua -l set_paths ferron.lua") elseif arg[1] == "build" and arg[2] == "--dev" then - os.execute("lua -l set_paths ferron.lua --dev") + os.execute("lua -l set_paths ferron.lua --dev") end