aboutsummaryrefslogtreecommitdiffstats
path: root/root/Tupdefault.lua
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-22 11:07:24 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-22 11:07:24 +0000
commite98c5becba67d642b5fd5c6e4a206d79749e8953 (patch)
tree34965a21413107e089a77da8886dd85022c9e651 /root/Tupdefault.lua
parentmove glitch cube, torus4d to experiments (diff)
downloadmmm-e98c5becba67d642b5fd5c6e4a206d79749e8953.tar.gz
mmm-e98c5becba67d642b5fd5c6e4a206d79749e8953.zip
bundle binary files as URLs
Diffstat (limited to 'root/Tupdefault.lua')
-rw-r--r--root/Tupdefault.lua14
1 files changed, 4 insertions, 10 deletions
diff --git a/root/Tupdefault.lua b/root/Tupdefault.lua
index 5cd45a9..039edf0 100644
--- a/root/Tupdefault.lua
+++ b/root/Tupdefault.lua
@@ -1,12 +1,6 @@
-LUA_PATH = {}
-LUA_PATH += root .. '/?.lua'
-LUA_PATH += root .. '/?.server.lua'
-LUA_PATH += root .. '/?/init.lua'
-LUA_PATH += root .. '/?/init.server.lua'
-LUA_PATH = 'LUA_PATH="' .. table.concat(LUA_PATH, ';') .. '"'
-
-bundle = LUA_PATH .. ' moon ' .. root .. '/bundle_fileder.moon'
-render = LUA_PATH .. ' moon ' .. root .. '/render.moon'
+local LUA_PATH = lua_path()
+bundle = LUA_PATH .. ' moon ' .. build .. '/bundle_fileder.moon'
+render = LUA_PATH .. ' moon ' .. build .. '/render_fileder.moon'
-- @TODO: whish there was a better glob for this?
facets = tup.glob '*$*'
@@ -20,7 +14,7 @@ facets += root .. '/<modules>'
tup.rule(
facets,
- '^ BNDL %d^ ' .. bundle .. ' %d ' .. inputs .. ' -- %<children>',
+ '^ BNDL %d^ ' .. bundle .. ' ' .. root .. ' %d ' .. inputs .. ' -- %<children>',
{ '$bundle.lua', '../<children>' }
)