blob: fc97826cce584f654670e02dd2c5750d0a898e4b [file] [log] [blame]
#!/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"