From 8cfdc36429c951a808812a61c1049a6df76096c8 Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Mon, 1 Oct 2018 23:28:18 +0530 Subject: [PATCH] Update bash file to add cpp output directory Signed-off-by: Akash Srivastava --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 53ec93d..9a1af3a 100755 --- a/build.sh +++ b/build.sh @@ -24,7 +24,7 @@ hash protoc-gen-go 2>/dev/null || go get -u github.com/golang/protobuf/protoc-ge hash protoc-gen-go 2>/dev/null || { echo >&2 'error: Make sure $GOPATH/bin is in your $PATH'; exit 1; } -find $DIR/go $DIR/python $DIR/js -type f -delete +find $DIR/go $DIR/python $DIR/js $DIR/cpp -type f -delete -protoc --proto_path="$DIR/proto" --python_out="$DIR/python" --go_out="$DIR/go" --js_out="import_style=commonjs,binary:$DIR/js" $DIR/proto/*.proto +protoc --proto_path="$DIR/proto" --python_out="$DIR/python" --go_out="$DIR/go" --js_out="import_style=commonjs,binary:$DIR/js" --cpp_out="$DIR/cpp" $DIR/proto/*.proto