make_proto.bat 341 B

12345678910111213141516171819202122
  1. @echo off
  2. call clean.bat
  3. call copyfrom.bat
  4. cd ..\protoc-gen-lua\plugin\
  5. set plugin_dir=%cd%\build.bat
  6. cd ..\..\proto\
  7. if exist .\lua rmdir /S/Q .\lua\
  8. mkdir .\lua\
  9. REM echo %plugin_dir%
  10. for %%i in (*.proto) do (
  11. protoc --lua_out=./lua --plugin=protoc-gen-lua="%plugin_dir%" %%i
  12. )
  13. ::python GenOp.py
  14. call copyto.bat
  15. call clean.bat