mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-02 17:27:50 -04:00
11 lines
248 B
Bash
11 lines
248 B
Bash
|
#!/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=. --go_out=. $DIR/*.proto
|
||
|
fi
|
||
|
done
|
||
|
popd
|