diff --git a/grpc/scripts/gen.bat b/grpc/scripts/gen.bat index 3841557..25d5565 100644 --- a/grpc/scripts/gen.bat +++ b/grpc/scripts/gen.bat @@ -5,7 +5,6 @@ cd /d "%~dp0..\pb" where /q protoc || echo Missing protoc && exit /b set gen=..\gen set pbs=bdware/bdledger/api/*.proto -REM set protos=%pkg%/common.proto %pkg%/error_details.proto %pkg%/node.proto %pkg%/ledger.proto %pkg%/query.proto %pkg%/contract.proto for %%A in (%*) do ( if "%%A"=="go" ( diff --git a/grpc/scripts/gen.sh b/grpc/scripts/gen.sh index 69612a0..a184788 100644 --- a/grpc/scripts/gen.sh +++ b/grpc/scripts/gen.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -cd "${0%/*}/.." +cd "${0%/*}/.." || exit +gen=..\gen +pbs='bdware/bdledger/api/*.proto' # TODO