You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
412 B
18 lines
412 B
4 months ago
|
#!/bin/bash
|
||
|
|
||
|
# Generates the golang source file of upload.proto file.
|
||
|
|
||
|
set -e
|
||
|
|
||
|
function die() { echo "ERROR: $1" >&2; exit 1; }
|
||
|
|
||
|
readonly error_msg="Maybe you need to run 'lunch aosp_arm-eng && m aprotoc blueprint_tools'?"
|
||
|
|
||
|
if ! hash aprotoc &>/dev/null; then
|
||
|
die "could not find aprotoc. ${error_msg}"
|
||
|
fi
|
||
|
|
||
|
if ! aprotoc --go_out=paths=source_relative:. upload.proto; then
|
||
|
die "build failed. ${error_msg}"
|
||
|
fi
|