Home | History | Annotate | Download | only in generator
      1 #!/bin/sh
      2 
      3 # This file is used to invoke nanopb_generator.py as a plugin
      4 # to protoc on Linux and other *nix-style systems.
      5 # Use it like this:
      6 # protoc --plugin=nanopb=..../protoc-gen-nanopb --nanopb_out=dir foo.proto
      7 #
      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.
     11 
     12 MYPATH=$(dirname "$0")
     13 exec python "$MYPATH/nanopb_generator.py" --protoc-plugin
     14