diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-04-16 14:30:49 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-04-16 18:38:29 +0000 |
commit | 24eaf9d8485294ffaff9fb455b36746b74bcc959 (patch) | |
tree | cd61e04f516633bfab584e16a4f34c66338e8452 /compile.sh | |
parent | c3eaa6ccde151bbd4f2f0f0fa6e4a2fe6e2746b9 (diff) |
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
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh index 1fe218b09e..c4ff9bf394 100755 --- a/compile.sh +++ b/compile.sh @@ -198,6 +198,9 @@ msys*|mingw*) done esac +[[ -x "${PROTOC-}" ]] \ + || fail "Protobuf compiler not found in ${PROTOC-}" + mkdir -p fromhost if [ ! -f fromhost/BUILD ]; then write_fromhost_build |