Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions compile_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

set -e

PROTO_ROOT="${PROTO_ROOT:-..}"

gem install grpc-tools

(
cd ../prefab-cloud
cd "$PROTO_ROOT/prefab-cloud"
git pull --rebase
)

grpc_tools_ruby_protoc -I ../prefab-cloud/ --ruby_out=lib --grpc_out=lib prefab.proto
grpc_tools_ruby_protoc -I "$PROTO_ROOT/prefab-cloud/" --ruby_out=lib --grpc_out=lib prefab.proto

gsed -i 's/^module Prefab$/module PrefabProto/g' lib/prefab_pb.rb

Expand Down
Loading