abeefa939c
Signed-off-by: liyang <daviderli614@gmail.com>
13 lines
312 B
Bash
Executable File
13 lines
312 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
PROTO_ROOT=./proto
|
|
GO_OUTPUT=./go
|
|
|
|
protoc -I=${PROTO_ROOT} --go_out=paths=source_relative:${GO_OUTPUT} $(find ./proto/ -type f -iname "*.proto")
|
|
protoc -I=${PROTO_ROOT} \
|
|
--go-grpc_out=paths=source_relative:${GO_OUTPUT} \
|
|
$(find ./proto/ -type f -iname "*.proto")
|
|
|