Advertisement
Xetrill

RunLuaCheck.cmd

Dec 11th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. @echo off
  2.  
  3. rem arguments:
  4. rem   %1: path or name of a specific file to check.
  5.  
  6. if defined %1 do (
  7.     goto scan_var
  8. ) else (
  9.     goto scan_dir
  10. )
  11. goto end
  12.  
  13. :scan_var
  14. "%LUA_DEV%\lua.exe" LuaCheck.lua %1 %2
  15. goto end
  16.  
  17. :scan_dir
  18. for %%f in (.\*.script) do (
  19.     "%LUA_DEV%\lua.exe" "%cd%\LuaCheck.lua" "%%f"
  20.     if %errorlevel% neq 0 pause
  21. )
  22. pause
  23. goto end
  24.  
  25. :end
  26. rem del /Q LuaCheck.log
  27. rem del /Q luac.out
  28. rem pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement