protoc-gen-nanopb 467 B

12345678910111213
  1. #!/bin/sh
  2. # This file is used to invoke nanopb_generator.py as a plugin
  3. # to protoc on Linux and other *nix-style systems.
  4. # Use it like this:
  5. # protoc --plugin=protoc-gen-nanopb=..../protoc-gen-nanopb --nanopb_out=dir foo.proto
  6. #
  7. # Note that if you use the binary package of nanopb, the protoc
  8. # path is already set up properly and there is no need to give
  9. # --plugin= on the command line.
  10. MYPATH=$(dirname "$0")
  11. exec "$MYPATH/nanopb_generator.py" --protoc-plugin