1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-05 19:44:32 -04:00
v2fly/tools/release/proto-gen.sh

11 lines
248 B
Bash
Raw Normal View History

2016-08-28 17:41:51 -04: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-10-15 18:23:27 -04:00
protoc --proto_path=. --go_out=. $DIR/*.proto
2016-08-28 17:41:51 -04:00
fi
done
popd