So I'm using luac to compile some .lua
into .lub
recursively through a batch file.
I'm also having an issue that the output of the luac (same name as the .lua
, but with .lub
extension) is not going to the folder where the .lua
was found.
I've used:
for /r %%r in (*.lua) do luac5.1.4.exe -o "%%~nr.lub" "%%r"
and the .lub
of a .lua
in a deeper folder is outputted in the root folder.
What should I change in the script so it outputs inside the .lua
's location folder?