summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-08-30 16:07:02 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-08-30 16:07:02 +0100
commit56048c5a7f47f915ed7506779fd8f75bb90bee78 (patch)
treee3ff3bad35d1337d18b500b4c1be025a4809c402 /utils
parenta797a8a9d11b0f0ca9bc738192475b06d5aacc9a (diff)
downloadgitano-56048c5a7f47f915ed7506779fd8f75bb90bee78.tar.gz
BUILD: More work towards an installer
Diffstat (limited to 'utils')
-rw-r--r--utils/install-lua-bin6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/install-lua-bin b/utils/install-lua-bin
index 1e5b105..71d4a14 100644
--- a/utils/install-lua-bin
+++ b/utils/install-lua-bin
@@ -1,6 +1,6 @@
-- Run this explicitly through -*- Lua -*-
-local lua_bin, inst_mod_path, input_name, output_name = ...
+local lua_bin, inst_share_path, inst_bin_path, inst_mod_path, input_name, output_name = ...
local input_fh = assert(io.open(input_name, "r"))
local output_fh = assert(io.open(output_name, "w"))
@@ -34,6 +34,10 @@ while line do
output_fh:write("-- Gitano modules installed into " ..
inst_mod_path .. "\n")
end
+ elseif token == "GITANO_BIN_PATH" then
+ output_fh:write(("gitano.config.lib_bin_path(%q)\n"):format(inst_bin_path))
+ elseif token == "GITANO_SHARE_PATH" then
+ output_fh:write(("gitano.config.share_path = %q\n"):format(inst_share_path))
else
output_fh:write("-- Unknown token: " .. token .. "\n")
end