Skip to content

Commit

Permalink
Ensures compilers create output directories consistent with heimdall
Browse files Browse the repository at this point in the history
  • Loading branch information
gxb5443 committed Feb 18, 2016
1 parent a16fdb8 commit 917e5ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion golang/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

TARGET_DIR="pb-go"

if [ ! -f *.proto ]; then
echo "No proto files found!"
exit 1
Expand All @@ -15,6 +17,10 @@ done

echo

if [ ! -d "$TARGET_DIR" ]; then
mkdir $TARGET_DIR
fi

echo "Building Go source..."
protoc -I /defs /defs/*.proto --go_out=plugins=grpc:./go
protoc -I /defs /defs/*.proto --go_out=plugins=grpc:./$TARGET_DIR
echo "Done!"
8 changes: 7 additions & 1 deletion ruby/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

TARGET_DIR="ruby"

if [ ! -f *.proto ]; then
echo "No proto files found!"
exit 1
Expand All @@ -15,7 +17,11 @@ done

echo

if [ ! -d "$TARGET_DIR" ]; then
mkdir $TARGET_DIR
fi

echo "Building..."
protoc -I /defs /defs/*.proto --ruby_out=./ruby --grpc_out=./ruby --plugin=protoc-gen-grpc=/opt/namely/grpc_ruby_plugin
protoc -I /defs /defs/*.proto --ruby_out=./$TARGET_DIR --grpc_out=./$TARGET_DIR --plugin=protoc-gen-grpc=/opt/namely/grpc_ruby_plugin

echo "Done"

0 comments on commit 917e5ff

Please sign in to comment.