diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/install-lua-bin | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/utils/install-lua-bin b/utils/install-lua-bin index 5cc587e..5148b66 100644 --- a/utils/install-lua-bin +++ b/utils/install-lua-bin @@ -34,26 +34,26 @@ while line do local token = line:match("^%-%- @@(.+)$") if token then if token == "SHEBANG" then - output_fh:write(("#!%s\n"):format(lua_bin)) + output_fh:write(("#!%s\n"):format(lua_bin)) elseif token == "GITANO_LUA_PATH" then - if not mod_path_present then - output_fh:write(("package.path = ('%%s;%%s'):" .. - "format(%q, package.path)" .. - "\n"):format(inst_mod_path)) - else - output_fh:write("-- Gitano modules installed into " .. - inst_mod_path .. "\n") - end + if not mod_path_present then + output_fh:write(("package.path = ('%%s;%%s'):" .. + "format(%q, package.path)" .. + "\n"):format(inst_mod_path)) + else + 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)) + 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)) + output_fh:write(("gitano.config.share_path(%q)\n"):format(inst_share_path)) elseif token == "GITANO_PLUGIN_PATH" then - output_fh:write(("gitano.plugins.load_plugins %s\n"):format(inst_plugin_path)) + output_fh:write(("gitano.plugins.load_plugins %s\n"):format(inst_plugin_path)) elseif token == "GITANO_I18N_PATH" then - output_fh:write(("gitano.i18n.set_langpack_path(%q) gitano.i18n.set_category()\n"):format(inst_share_path .. "/lang")) + output_fh:write(("gitano.i18n.set_langpack_path(%q) gitano.i18n.set_category()\n"):format(inst_share_path .. "/lang")) else - output_fh:write("-- Unknown token: " .. token .. "\n") + output_fh:write("-- Unknown token: " .. token .. "\n") end else output_fh:write(line .. "\n") |