2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
loop/looprpc/gen_protos.sh
2019-03-06 15:38:47 -08:00

14 lines
389 B
Bash
Executable File

#!/bin/sh
# Generate the server protos.
protoc -I/usr/local/include -I.\
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc,paths=source_relative:. \
server.proto
# Generate the client protos.
protoc -I/usr/local/include -I. \
-I$GOPATH/src \
--go_out=plugins=grpc:. \
client.proto