blob: 1690348bf6e8308158269d3f2a66c7f2471548bc [file] [log] [blame]
#!/bin/bash
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
# This script is used to fetch the prebuilt that is needed by fortune-teller package build.
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
readonly REPO_ROOT="${REPO_ROOT}"
readonly BAZEL_BOOTSTRAP="${REPO_ROOT}/third_party/sdk-integration/scripts/bootstrap.sh"
readonly BAZEL="${REPO_ROOT}/third_party/sdk-integration/tools/bazel"
download_prebuilt() {
echo "Downloading prebuilt binaries."
$BAZEL_BOOTSTRAP
$BAZEL --version
echo "Download complete."
}
main() {
download_prebuilt
}
main "$@"