proto-gen.sh 248 B

1234567891011
  1. #!/bin/bash
  2. pushd $GOPATH/src
  3. for DIR in $(find ./v2ray.com/core -type d -not -path "*.git*"); do
  4. TEST_FILES=($DIR/*.proto)
  5. #echo ${TEST_FILES}
  6. if [ -f ${TEST_FILES[0]} ]; then
  7. protoc --proto_path=. --go_out=. $DIR/*.proto
  8. fi
  9. done
  10. popd