mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
20 lines
419 B
Bash
Executable File
20 lines
419 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#rm -f ../pkg/rpc/pb/*.pb.go
|
|
protoc --go_out=plugins=grpc:../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/*.proto
|
|
RESULT=$?
|
|
if [ "${RESULT}" != "0" ]; then
|
|
exit
|
|
fi
|
|
|
|
RESULT=`protoc --go_out=plugins=grpc:../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/models/*.proto`
|
|
RESULT=$?
|
|
if [ "${RESULT}" != "0" ]; then
|
|
exit
|
|
fi
|
|
|
|
|
|
# generate rpc.json
|
|
./proto-json.sh --quiet
|
|
|
|
echo "ok" |