github.com/okex/exchain@v1.8.0/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