]> git.lizzy.rs Git - metalua.git/blob - src/win32/precompile.lua
Builds on win32 with MS Visual Studio, through an ugly-ass .bat script, and by linkin...
[metalua.git] / src / win32 / precompile.lua
1 local dirname = ... or arg and arg[2] or error "No directory specified"\r
2 print ("Precompiling the content of "..dirname)\r
3 \r
4 local f = io.popen ("dir /S /b " .. dirname)\r
5 for src in f:lines() do\r
6    local base = src:match "^(.+)%.mlua$"\r
7    if base then\r
8       local cmd = "metalua "..src.." -o "..base..".luac"\r
9       print (cmd)\r
10       os.execute (cmd)\r
11    end\r
12 end\r
13 \r
14 \r