bdledger-apis/gen-go.bat

19 lines
585 B
Batchfile
Raw Normal View History

@echo off
set dir=.\gen\go
2018-10-09 03:52:51 +00:00
set exe=protoc
set gen=protoc-gen-go
if defined GOPATH set PATH=%PATH%;%GOPATH%\bin
where /q %exe% || echo missing %exe% && exit /B
where /q %gen% || echo missing %gen% && exit /B
if not exist %dir% mkdir %dir%
2019-09-26 10:06:06 +00:00
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/common.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/error_details.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/ledger.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/query.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/node.proto
2018-10-09 03:52:51 +00:00
echo all done