5976122c46
Signed-off-by: zyy17 <zyylsxm@gmail.com>
19 lines
657 B
Bash
Executable File
19 lines
657 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
GO_OUTPUT=./go
|
|
|
|
# TODO(zyy17): Can we make the following commands as one command?
|
|
protoc --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
|
|
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
|
|
-Iproto proto/greptime/v1/**/*.proto
|
|
|
|
protoc --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
|
|
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
|
|
-Iproto proto/prometheus/**/*.proto
|
|
|
|
protoc --go_out=${GO_OUTPUT} --go_opt=paths=source_relative \
|
|
--go-grpc_out=${GO_OUTPUT} --go-grpc_opt=paths=source_relative \
|
|
-Iproto proto/substrait_extension/*.proto
|