forked from opencurve/curve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk-proto.sh
113 lines (103 loc) · 4.4 KB
/
mk-proto.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# proto dir
mkdir -p proto
# proto
protoc --go_out=proto --proto_path=internal/proto \
internal/proto/curvebs/topology/statuscode.proto
protoc --go_out=proto --proto_path=internal/proto \
internal/proto/curvebs/schedule/statuscode.proto
## curvebs
### proto/chunk.proto
protoc --go_out=proto --proto_path=.. \
../proto/chunk.proto
### proto/chunkserver.proto
protoc --go_out=proto --proto_path=.. \
../proto/chunkserver.proto
### proto/cli.proto
protoc --go_out=proto --proto_path=.. \
../proto/cli.proto
### proto/cli2.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mproto/common.proto=github.com/opencurve/curve/tools-v2/proto/proto/common \
../proto/cli2.proto
### proto/common.proto
protoc --go_out=proto --proto_path=.. \
../proto/common.proto
### proto/configuration.proto
protoc --go_out=proto --proto_path=.. \
../proto/configuration.proto
### proto/copyset.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mproto/common.proto=github.com/opencurve/curve/tools-v2/proto/proto/common \
../proto/copyset.proto
### proto/curve_storage.proto
protoc --go_out=proto --proto_path=.. \
../proto/curve_storage.proto
### proto/scan.proto
protoc --go_out=proto --proto_path=.. \
../proto/scan.proto
### proto/heartbeat.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mproto/common.proto=github.com/opencurve/curve/tools-v2/proto/proto/common \
--go_opt=Mproto/scan.proto=github.com/opencurve/curve/tools-v2/proto/proto/scan \
../proto/heartbeat.proto
### proto/topology
protoc --go_out=proto --proto_path=.. \
--go_opt=Mproto/common.proto=github.com/opencurve/curve/tools-v2/proto/proto/common \
../proto/topology.proto
### proto/integrity.proto
protoc --go_out=proto --proto_path=.. \
../proto/integrity.proto
### proto/nameserver2.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mproto/common.proto=github.com/opencurve/curve/tools-v2/proto/proto/common \
../proto/nameserver2.proto
### proto/schedule.proto
protoc --go_out=proto --proto_path=.. \
../proto/schedule.proto
### proto/snapshotcloneserver.proto
protoc --go_out=proto --proto_path=.. \
../proto/snapshotcloneserver.proto
## curvefs
### curvefs/proto/cli2.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
../curvefs/proto/cli2.proto
### curvefs/proto/common.proto
protoc --go_out=proto --proto_path=.. \
../curvefs/proto/common.proto
### curvefs/proto/copyset.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
../curvefs/proto/copyset.proto
### curvefs/proto/heartbeat.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
--go_opt=Mproto/heartbeat.proto=github.com/opencurve/curve/tools-v2/proto/proto/heartbeat \
--go_opt=Mcurvefs/proto/metaserver.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/metaserver \
../curvefs/proto/heartbeat.proto
### curvefs/proto/mds.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
--go_opt=Mcurvefs/proto/topology.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/topology \
../curvefs/proto/mds.proto
### curvefs/proto/metaserver.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
../curvefs/proto/metaserver.proto
### curvefs/proto/schedule.proto
protoc --go_out=proto --proto_path=.. \
../curvefs/proto/schedule.proto
### curvefs/proto/space.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
../curvefs/proto/space.proto
### curvefs/proto/topology.proto
protoc --go_out=proto --proto_path=.. \
--go_opt=Mcurvefs/proto/common.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/common \
--go_opt=Mcurvefs/proto/heartbeat.proto=github.com/opencurve/curve/tools-v2/proto/curvefs/proto/heartbeat \
../curvefs/proto/topology.proto
# grpc
## bs
protoc --go-grpc_out=proto --proto_path=.. ../proto/*.proto
## fs
protoc --go-grpc_out=proto --proto_path=.. ../curvefs/proto/*.proto