Okay, now I can make a release.

This commit is contained in:
Jane Roxanne 2019-11-05 15:14:33 -05:00
parent d106f8c525
commit 1678113ca4
3 changed files with 14 additions and 3 deletions

View File

@ -16,6 +16,6 @@
limitations under the License.
]]
--#include "directives/define.lua"
---#include "directives/define.lua"
--#include "directives/include.lua"
--#include "directives/loadmod.lua"

View File

@ -16,6 +16,7 @@
limitations under the License.
]]
--#include "luacomp_vars.lua"
--#include "ast.lua"
--#include "generator.lua"
--#include "directive_provider.lua"
@ -25,7 +26,7 @@ local argparse = (function()
--#include "argparse.lua"
end)()
local parser = argparse(arg[0], "A Lua preprocessor+postprocessor.")
local parser = argparse(arg[0], "LuaComp v"..LUACOMP_VERSION.."\nA Lua preprocessor+postprocessor.")
parser:argument("input", "Input file (- for STDIN)")
parser:option("-O --output", "Output file. (- for STDOUT)", "-")
parser:option("-m --minifier", "Sets the minifier", "none")
@ -60,4 +61,4 @@ if (args.executable) then
end
of:write(rcode)
of:close()
f:close()
f:close()

10
src/luacomp_vars.lua Normal file
View File

@ -0,0 +1,10 @@
local function _sv(k, v)
_G[k] = v
--os.setenv(k, tostring(v))
end
_sv("LUACOMP_V_MAJ", 1)
_sv("LUACOMP_V_MIN", 0)
_sv("LUACOMP_V_PAT", 0)
_sv("LUACOMP_VERSION", LUACOMP_V_MAJ.."."..LUACOMP_V_MIN.."."..LUACOMP_V_PAT)
_sv("LUACOMP_NAME", "LuaComp")