mirror of
https://github.com/Adorable-Catgirl/LuaComp.git
synced 2024-11-26 11:48:06 +11:00
Okay, now I can make a release.
This commit is contained in:
parent
d106f8c525
commit
1678113ca4
@ -16,6 +16,6 @@
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
--#include "directives/define.lua"
|
||||
---#include "directives/define.lua"
|
||||
--#include "directives/include.lua"
|
||||
--#include "directives/loadmod.lua"
|
||||
|
@ -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
10
src/luacomp_vars.lua
Normal 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")
|
Loading…
Reference in New Issue
Block a user