edb/proto/protoc.sh

8 lines
169 B
Bash
Raw Normal View History

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