edb/proto/protoc.sh

8 lines
169 B
Bash
Raw Normal View History

2020-03-04 21:12:38 +00:00
# !/bin/bash
BASEDIR=$(dirname "$0")
if [ ! -d "$BASEDIR/../goproto" ]; then
mkdir $BASEDIR/../goproto
fi
cd $BASEDIR
protoc --go_out=plugins=grpc:../goproto/ *.proto