Make protobuf generation scripts less noisy
Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/1247744b Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/1247744b Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/1247744b Branch: refs/heads/master Commit: 1247744ba4cccb1c419b5e9ea7c4cac20a0ea80b Parents: dbf1ecc Author: Francis Chuang <[email protected]> Authored: Fri Jul 21 15:15:35 2017 +1000 Committer: Julian Hyde <[email protected]> Committed: Thu Aug 10 18:47:13 2017 -0700 ---------------------------------------------------------------------- gen-protobuf.bat | 10 +++++++--- gen-protobuf.sh | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/1247744b/gen-protobuf.bat ---------------------------------------------------------------------- diff --git a/gen-protobuf.bat b/gen-protobuf.bat index 3306afe..027a264 100644 --- a/gen-protobuf.bat +++ b/gen-protobuf.bat @@ -1,7 +1,8 @@ +@ECHO OFF SET AVATICA_VER=rel/avatica-1.10.0 -rmdir /Q /S message -rmdir /Q /S avatica-tmp +IF EXIST message\ rmdir /Q /S message +IF EXIST avatica-tmp\ rmdir /Q /S avatica-tmp git init avatica-tmp cd avatica-tmp @@ -15,4 +16,7 @@ cd .. mkdir message protoc --proto_path=avatica-tmp/core/src/main/protobuf/ --go_out=import_path=message:message avatica-tmp/core/src/main/protobuf/*.proto -rmdir /Q /S avatica-tmp \ No newline at end of file +rmdir /Q /S avatica-tmp + +echo. +echo Protobufs generated! \ No newline at end of file http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/1247744b/gen-protobuf.sh ---------------------------------------------------------------------- diff --git a/gen-protobuf.sh b/gen-protobuf.sh index 230fd84..6d07b5b 100644 --- a/gen-protobuf.sh +++ b/gen-protobuf.sh @@ -17,4 +17,6 @@ cd .. mkdir message protoc --proto_path=avatica-tmp/core/src/main/protobuf/ --go_out=import_path=message/message avatica-tmp/core/src/main/protobuf/*.proto -rm -rf avatica-tmp \ No newline at end of file +rm -rf avatica-tmp + +echo -e "\nProtobufs generated!" \ No newline at end of file
