updateproto.sh 336 B

123456789101112
  1. export GOPATH=$PWD
  2. export PATH=$PATH:$PWD/bin
  3. export GOBIN=$PWD/bin
  4. export RPC_PATH=$PWD/remotecontrol
  5. go get github.com/golang/protobuf/protoc-gen-go
  6. go install ./src/github.com/golang/protobuf/protoc-gen-go
  7. mkdir -p $RPC_PATH
  8. rm -f $RPC_PATH/*.pb.go
  9. protoc -I$RPC_PATH --go_out=plugins=grpc:$RPC_PATH $RPC_PATH/remotecontrol.proto