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