jam-cloud/pb/build_rprotoc

21 lines
544 B
Plaintext
Raw Normal View History

2012-07-31 04:00:33 +00:00
#!/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" >/dev/null 2>&1 || { echo >&2 "bundle is required but not installed. Skipping ruby protocol buffers."; exit 0; }
# creates a bin folder with 'rprotoc' command inside
2012-08-06 04:01:24 +00:00
bundle install --binstubs > /dev/null
2012-07-31 04:00:33 +00:00
# die on error at this point
set -e
2012-08-06 04:01:24 +00:00
echo "building ruby protocol buffers"
bin/ruby-protoc $PROTO_FILES --proto_path $SRC --ruby_out $RUBY_OUT
2012-07-31 04:00:33 +00:00
2012-08-18 18:56:16 +00:00
./package_ruby
2012-07-31 04:00:33 +00:00