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.
19 lines
376 B
Bash
19 lines
376 B
Bash
#!/bin/bash
|
|
WORKDIR=github.com/ajikamaludin/go-grpc_basic
|
|
|
|
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 \
|
|
v1/$x/$x.proto
|
|
done
|
|
|