You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-grpc_basic/proto/compile-proto.sh

19 lines
376 B
Bash

#!/bin/bash
WORKDIR=github.com/ajikamaludin/go-grpc_basic
2 years ago
set -ve
for x in $(ls v1)
do
protoc \
-I. \
-I/usr/local/include \
-I${GOPATH}/src \
-I${GOPATH}/src/$WORKDIR/proto \
-I${GOPATH}/src/$WORKDIR/proto/lib \
--go_out=plugins=grpc:$GOPATH/src \
--grpc-gateway_out=logtostderr=true:$GOPATH/src \
2 years ago
v1/$x/$x.proto
done