[scripts] Delete obsolete scripts
These were old entrypoints used by the infrastructure which have now
been migrated to the :infra target.
Bug: 112403
Change-Id: I843b2f6c77d30ff82c6b31337371f13a24964b65
Reviewed-on: https://fuchsia-review.googlesource.com/c/drivers/misc/google/backlight/+/796744
Commit-Queue: Anthony Fandrianto <atyfto@google.com>
Reviewed-by: Jiaming Li <lijiaming@google.com>
diff --git a/scripts/build.sh b/scripts/build.sh
deleted file mode 100755
index 6002179..0000000
--- a/scripts/build.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/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 by infra to validate the package can be built and tests
-# can pass.
-
-readonly REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
-
-source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/run_bazel.sh || exit $?
-
-help() {
- echo
- echo "Script used to validate the targets can be built."
- echo
- echo "Usage:"
- echo " $(basename "$0") [<options>]"
- echo
- echo "Options:"
- echo
- echo " -o <output_base>"
- echo " This is a bazel parameter. More about it can be found in"
- echo " https://docs.bazel.build/versions/main/command-line-reference.html#flag--output_base"
- echo
-}
-
-build_targets() {
- cd "${REPO_ROOT}"
- run_bazel build --config=fuchsia_x64 //driver:pkg
- run_bazel build --config=fuchsia_x64 //driver:test_pkg
-}
-
-main() {
- while getopts ":ho:" opt; do
- case ${opt} in
- 'h' | '?')
- help
- exit 1
- ;;
- 'o') OUTPUT_BASE=$OPTARG ;;
- esac
- done
- build_targets
-}
-main "$@"
diff --git a/scripts/emit_cipd_manifest.sh b/scripts/emit_cipd_manifest.sh
deleted file mode 100755
index 36dca7b..0000000
--- a/scripts/emit_cipd_manifest.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/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 generate the CIPD upload manifest file which can be
-# used by infra.
-
-source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/run_bazel.sh || exit $?
-
-readonly REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
-readonly CIPD_UPLOAD_MANIFEST_PATH="bazel-bin/driver/cipd_upload_manifest.json"
-
-help() {
- echo
- echo "Script used to generate cipd_manifest.json which is used to upload packages."
- echo
- echo "Usage:"
- echo " $(basename "$0") [<options>]"
- echo
- echo "Options:"
- echo
- echo " -h"
- echo " Prints this help message"
- echo " -o <output_base>"
- echo " This is a bazel parameter. More about it can be found in"
- echo " https://docs.bazel.build/versions/main/command-line-reference.html#flag--output_base"
- echo
-}
-
-generate_upload_manifest() {
- (
- cd "${REPO_ROOT}"
- run_bazel build --config=fuchsia_x64 driver:artifact_cipd_release 1>&2
- cat "$CIPD_UPLOAD_MANIFEST_PATH"
- ) || exit 1
-}
-
-main() {
- while getopts ":ho:" opt; do
- case ${opt} in
- 'h' | '?')
- help
- exit 1
- ;;
- 'o') OUTPUT_BASE=$OPTARG ;;
- esac
- done
-
- generate_upload_manifest
-}
-
-main "$@"
diff --git a/scripts/emit_debug_symbol_cipd_manifest.sh b/scripts/emit_debug_symbol_cipd_manifest.sh
deleted file mode 100755
index de1437d..0000000
--- a/scripts/emit_debug_symbol_cipd_manifest.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/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 generate the CIPD upload manifest file for debug symbol
-# which can be used by infra.
-
-source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/run_bazel.sh || exit $?
-
-readonly REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
-readonly CIPD_UPLOAD_MANIFEST_PATH="bazel-bin/driver/debug_symbols_cipd_upload_manifest.json"
-
-help() {
- echo
- echo "Script used to generate cipd_manifest.json which is used to upload debug symbol."
- echo
- echo "Usage:"
- echo " $(basename "$0") [<options>]"
- echo
- echo "Options:"
- echo
- echo " -o <output_base>"
- echo " This is a bazel parameter. More about it can be found in"
- echo " https://docs.bazel.build/versions/main/command-line-reference.html#flag--output_base"
- echo
-}
-
-generate_upload_manifest() {
- (
- cd "${REPO_ROOT}"
- run_bazel build --config=fuchsia_x64 driver:debug_symbol_cipd_release 1>&2
- cat "$CIPD_UPLOAD_MANIFEST_PATH"
- ) || exit 1
-
-}
-
-main() {
- while getopts ":ho:v:" opt; do
- case ${opt} in
- 'h' | '?')
- help
- exit 1
- ;;
- 'o') OUTPUT_BASE=$OPTARG ;;
- esac
- done
-
- generate_upload_manifest
-}
-
-main "$@"