|
1
|
#!/usr/bin/env bash |
|
2
|
cd "$(dirname "$0")" |
|
3
|
|
|
4
|
rm -rf google |
|
5
|
|
|
6
|
for p in $(find ../third_party/googleapis/google -type f -name *.proto); do |
|
7
|
protoc \ |
|
8
|
--proto_path=../third_party/googleapis \ |
|
9
|
--php_out=./ \ |
|
10
|
--grpc_out=./ \ |
|
11
|
--plugin=protoc-gen-grpc="$(which grpc_php_plugin)" \ |
|
12
|
"$p" |
|
13
|
done |
|
14
|
|