github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/tendermint/scripts/protocgen.sh (about) 1 #!/usr/bin/env bash 2 3 set -eo pipefail 4 5 proto_dirs=$(find . -path ./third_party -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) 6 for dir in $proto_dirs; do 7 protoc \ 8 -I. \ 9 --gogo_out=Mgoogle/protobuf/timestamp.proto=github.com/golang/protobuf/ptypes/timestamp,Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration,plugins=grpc,paths=source_relative:. \ 10 $(find "${dir}" -name '*.proto') 11 done