Skip to content

Commit

Permalink
Add comments in build_example_test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
y-zeng committed Jun 30, 2016
1 parent 0287be8 commit f329395
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/objective-c/tests/build_example_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ cd `dirname $0`

BINDIR=`pwd`/../../../bins/$CONFIG
TMP_PATH=$PATH

# If `protoc` is not found, add bins/$CONFIG/protobuf/protoc to the search path
hash protoc 2>/dev/null || TMP_PATH=$BINDIR/protobuf:$TMP_PATH

# If `protoc-gen-objcgrpc` is not found, make a symlink from
# bins/$CONGIF/grpc_objective_c_plugin and add it to the search path
PATH=$TMP_PATH hash protoc-gen-objcgrpc 2>/dev/null || {
ln -sf $BINDIR/grpc_objective_c_plugin $BINDIR/protoc-gen-objcgrpc
TMP_PATH=$BINDIR:$TMP_PATH
Expand Down

0 comments on commit f329395

Please sign in to comment.