N
N
NFly2016-03-16 15:54:33
Lua
NFly, 2016-03-16 15:54:33

How to use LuaSrcDiet and automate usage for multiple files?

There is a LuaSrcDiet utility ( luaforge.net/projects/luasrcdiet ). Briefly, it removes comments, whitespace, and other code size optimizations for Lua scripts.
But I have a lot of scripts. I don't want to write files manually for each one:
lua LuaSrcDiet.lua myscript.lua -o myscript_.lua
What tools does Windows have to automate this process? How it's done? Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey P, 2016-03-16
@ruddy22

maybe it's worth writing a script (on the same lua) that will run on a thread on a file?

S
Sergey Lerg, 2016-03-16
@Lerg

Either write a script using the LuaFileSystem extension, or install cygwin and make a for loop on the bash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question