23 lines
617 B
Bash
Executable File
23 lines
617 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# ruby protocol buffers
|
|
# http://code.google.com/p/ruby-protobuf/
|
|
RUBY_OUT=$TARGET/ruby
|
|
|
|
# we exit with 0; treat ruby as optional at the moment
|
|
command -v "bundle" || { echo >&2 "bundle is required but not installed. Skipping ruby protocol buffers."; exit 0; }
|
|
|
|
# creates a bin folder with 'rprotoc' command inside
|
|
#echo "skipping creation of binstubs as it breaks bin/ruby-protoc invocation below"
|
|
rm Gemfile.lock
|
|
bundle install --binstubs
|
|
|
|
# die on error at this point
|
|
set -e
|
|
|
|
echo "building ruby protocol buffers"
|
|
bin/ruby-protoc $PROTO_FILES --proto_path $SRC --ruby_out $RUBY_OUT
|
|
|
|
./package_ruby
|
|
|