github.com/cosmos/cosmos-proto@v1.0.0-beta.3/scripts/fastreflect.sh (about)

     1  #!/bin/sh
     2  
     3  set -e
     4  
     5  build() {
     6      echo finding protobuf files in "$1"
     7      proto_files=$(find "$1" -name "*.proto")
     8      for file in $proto_files; do
     9        echo "building proto file $file"
    10        protoc -I=. --plugin /usr/bin/protoc-gen-go-pulsar --go-pulsar_out=. --go-pulsar_opt=features=protoc+fast "$file"
    11      done
    12  }
    13  
    14  for dir in "$@"
    15  do
    16    build "$dir"
    17  done
    18  
    19  cp -r github.com/cosmos/cosmos-proto/* ./
    20  rm -rf github.com