You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/tools/release/proto-gen.sh

11 lines
294 B

#!/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