1#!/bin/bash 2 3# Generates the golang source file of build_completion.proto file. 4 5set -e 6 7function die() { echo "ERROR: $1" >&2; exit 1; } 8 9readonly error_msg="Maybe you need to run 'lunch aosp_arm-eng && m aprotoc blueprint_tools'?" 10 11if ! hash aprotoc &>/dev/null; then 12 die "could not find aprotoc. ${error_msg}" 13fi 14 15if ! aprotoc --go_out=paths=source_relative:. build_progress.proto; then 16 die "build failed. ${error_msg}" 17fi 18