diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-02 17:17:19 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-02 17:18:09 +0000 |
commit | 79fcfa572b7834f7768fa2fedb954059e47791f3 (patch) | |
tree | 7ea09a2f322885765b53bc04de07ca480a97b45c /utils | |
parent | 8ddd848fe17864e59b4c293974cb2c50e3639082 (diff) | |
download | gitano-79fcfa572b7834f7768fa2fedb954059e47791f3.tar.gz |
cleanups: Whitespace and indentation and untabify
This is a massive unpleasant commit which does whitespace cleanup
and fixes indentation (including untabifying). Hopefully we won't
need to do this ever again, if we keep an eye on commits.
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") |