1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/tools/release/proto-gen.sh
2016-09-18 00:41:21 +02:00

11 lines
294 B
Bash
Executable File

#!/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
protoc --proto_path=. --proto_path=./github.com/google/protobuf/src --go_out=. $DIR/*.proto
fi
done
popd