generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate.sh
28 lines (24 loc) · 1.49 KB
/
generate.sh
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
# Download the .proto files from GitHub
curl https://raw.githubusercontent.com/jaegertracing/jaeger-idl/master/proto/api_v2/collector.proto \
--output ./Sources/JaegerCollector/Generated/collector.proto
curl https://raw.githubusercontent.com/jaegertracing/jaeger-idl/master/proto/api_v2/model.proto \
--output ./Sources/JaegerCollector/Generated/model.proto
# Download the imports:
mkdir ./Sources/JaegerCollector/Generated/gogoproto
curl https://raw.githubusercontent.com/gogo/protobuf/master/gogoproto/gogo.proto \
--output ./Sources/JaegerCollector/Generated/gogoproto/gogo.proto
mkdir ./Sources/JaegerCollector/Generated/google
mkdir ./Sources/JaegerCollector/Generated/google/api
curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto \
--output ./Sources/JaegerCollector/Generated/google/api/annotations.proto
curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto \
--output ./Sources/JaegerCollector/Generated/google/api/http.proto
# Run the protobuf compiler
protoc ./Sources/JaegerCollector/Generated/collector.proto \
--proto_path=./Sources/JaegerCollector/Generated \
--swift_out=./Sources/JaegerCollector/Generated \
--grpc-swift_out=./Sources/JaegerCollector/Generated
protoc ./Sources/JaegerCollector/Generated/model.proto \
--proto_path=./Sources/JaegerCollector/Generated \
--swift_out=./Sources/JaegerCollector/Generated \
--grpc-swift_out=./Sources/JaegerCollector/Generated