pro.sh 317 B

1234567
  1. #! /bin/sh
  2. # proto.sh https://github.com/google/protobuf/releases 下载release包,解压后将include中的文件夹拖到/usr/local/include即可
  3. gopath=$GOPATH/src
  4. gogopath=$GOPATH/src/go-common/vendor/github.com/gogo/protobuf
  5. protoc --gofast_out=. --proto_path=/usr/local/include:$gopath:$gogopath:. *.proto