commit | 24eaf9d8485294ffaff9fb455b36746b74bcc959 | [log] [tgz] |
---|---|---|
author | Damien Martin-Guillerez <dmarting@google.com> | Thu Apr 16 14:30:49 2015 +0000 |
committer | Kristina Chodorow <kchodorow@google.com> | Thu Apr 16 18:38:29 2015 +0000 |
tree | cd61e04f516633bfab584e16a4f34c66338e8452 | |
parent | c3eaa6ccde151bbd4f2f0f0fa6e4a2fe6e2746b9 [diff] [blame] |
Bazel compile.sh: test for existence of the protoc compiler Tested with removing the protoc binaries from a github copy. Fixes #128. -- MOS_MIGRATED_REVID=91297812
diff --git a/compile.sh b/compile.sh index 1fe218b..c4ff9bf3 100755 --- a/compile.sh +++ b/compile.sh
@@ -198,6 +198,9 @@ done esac +[[ -x "${PROTOC-}" ]] \ + || fail "Protobuf compiler not found in ${PROTOC-}" + mkdir -p fromhost if [ ! -f fromhost/BUILD ]; then write_fromhost_build