blob: 075b1035ee8b95fb826f937f50f3f4f5ad23ce28 [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/branches.bin" \
--proto_path="$DIR" \
"$DIR/branches.proto"