| #!/usr/bin/env bash |
| # Copyright 2020 The Flutter Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| if ! type protoc >/dev/null 2>&1; then |
| PROTOC_LINK='https://grpc.io/docs/protoc-installation' |
| 2>&1 echo "You must have the protoc compiler, see: $PROTOC_LINK" |
| exit 1 |
| fi |
| |
| # Capture absolute path to the containing directory |
| DIR="$(cd "$(dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)" |
| |
| protoc --descriptor_set_out="$DIR/scheduler.bin" \ |
| --proto_path="$DIR" \ |
| "$DIR/scheduler.proto" |