From 2bb63aa3cca0533d6fe1fa825080009c40cb958d Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 29 Jul 2017 16:22:46 -0400 Subject: [PATCH] Move loop over filesystem compilation to own file --- util/compileall.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 util/compileall.lua diff --git a/util/compileall.lua b/util/compileall.lua new file mode 100644 index 0000000..6ea0d98 --- /dev/null +++ b/util/compileall.lua @@ -0,0 +1,8 @@ +-- find all /.*\.lua/ files except "init.lua" and compile them. +local k,v +for k,v in pairs(file.list()) do + local ix, _ = k:find("^.*%.lua$") + if ix and k ~= "init.lua" then + node.compile(k); file.remove(k) + end +end -- 2.50.1