-
Notifications
You must be signed in to change notification settings - Fork 1
/
RUNME
executable file
·31 lines (28 loc) · 870 Bytes
/
RUNME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# Use this script to regenerate the Protocol Buffer and gRPC files
# needed to build the example.
#
# Note that it requires protoc, protoc-gen-swift, and
# protoc-gen-swiftgrpc binaries.
if [ ! -d "googleapis" ]; then
curl -L -O https://github.com/googleapis/googleapis/archive/master.zip
unzip master.zip
rm -f master.zip
mv googleapis-master googleapis
fi
protoc \
google/cloud/speech/v1p1beta1/cloud_speech.proto \
google/longrunning/operations.proto \
google/rpc/status.proto \
google/rpc/code.proto \
google/rpc/error_details.proto \
google/api/annotations.proto \
google/api/http.proto \
google/protobuf/descriptor.proto \
-Igoogleapis \
-Iinclude \
--swift_out=googleapis \
--swiftgrpc_out=googleapis
# move Swift files to the sources directory
find googleapis -name "*.swift" -exec mv {} "SpeechTimestamper/gRPC bindings" \;