github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/coprocess/proto/update_bindings.sh (about)

     1  #!/bin/sh
     2  
     3  # Dependencies needed:
     4  # * grpc (for protoc)
     5  # * go get -u github.com/golang/protobuf/protoc-gen-go
     6  # * pip3 install grpcio grpcio-tools
     7  
     8  echo "Generating bindings for Go."
     9  protoc -I. --go_out=plugins=grpc:../ *.proto
    10  
    11  echo "Generating bindings for Python."
    12  mkdir -p ../bindings/python
    13  protoc -I. --python_out=../bindings/python *.proto
    14  python3 codegen.py
    15  
    16  echo "Generating bindings for Ruby."
    17  mkdir -p ../bindings/ruby
    18  protoc -I. --ruby_out=plugins=grpc:../bindings/ruby *.proto
    19  
    20  echo
    21  echo "Done"