You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
335 B
14 lines
335 B
4 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
source ./proto_dir.cfg
|
||
|
|
||
|
for ((i = 0; i < ${#all_proto[*]}; i++)); do
|
||
|
proto=${all_proto[$i]}
|
||
|
protoc --go_out=plugins=grpc:. $proto
|
||
3 years ago
|
s=`echo $proto | sed 's/ //g'`
|
||
3 years ago
|
v=${s//proto/pb.go}
|
||
|
protoc-go-inject-tag -input=./$v
|
||
4 years ago
|
echo "protoc --go_out=plugins=grpc:." $proto
|
||
|
done
|
||
|
echo "proto file generate success..."
|