v2ray-core/tools/release/proto-gen.sh

11 lines
294 B
Bash
Raw Normal View History

2016-08-28 21:41:51 +00:00
#!/bin/bash
pushd $GOPATH/src
for DIR in $(find ./v2ray.com/core -type d -not -path "*.git*"); do
TEST_FILES=($DIR/*.proto)
#echo ${TEST_FILES}
if [ -f ${TEST_FILES[0]} ]; then
2016-09-17 22:41:21 +00:00
protoc --proto_path=. --proto_path=./github.com/google/protobuf/src --go_out=. $DIR/*.proto
2016-08-28 21:41:51 +00:00
fi
done
popd