edb/proto/protoc.sh
2020-03-05 05:12:38 +08:00

8 lines
169 B
Bash
Executable File

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