| export MAPS=Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor |
| -I $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis" |
| $SRC_DIR/logical_device.proto \ |
| $SRC_DIR/yang_options.proto" |
| export PONSIM_PB="$SRC_DIR/ponsim_common.proto $SRC_DIR/ponsim_olt.proto" |
| export SCHEMA_PB="$SRC_DIR/schema.proto" |
| export IETF_PB="$SRC_DIR/ietf_interfaces.proto" |
| export OF_PB="$SRC_DIR/openflow_13.proto" |
| export BAL_PB="$SRC_DIR/bal*.proto" |
| export BBF_PB="$SRC_DIR/bbf*.proto" |
| export OMCI_PB="$SRC_DIR/omci*.proto" |
| pbs="$(eval echo \$$pb_var)" |
| protoc --go_out=$MAPS,plugins=grpc:$GOPATH/src $INCS $pbs |