Cleanup old ndk CIPD upload script (flutter/engine#30253)

This commit is contained in:
Gary Qian
2021-12-10 10:09:11 -08:00
committed by GitHub
parent 2474482021
commit 84773ccee9
2 changed files with 1 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ print_usage () {
echo " - PATH_TO_SDK_DIR is the path to the sdk folder. If omitted, this defaults to"
echo " your ANDROID_SDK_ROOT environment variable."
echo ""
echo "This script downloads the packages specified in android_sdk_packages.txt and uploads"
echo "This script downloads the packages specified in packages.txt and uploads"
echo "them to CIPD for linux, mac, and windows."
echo ""
echo "Manage the packages to download in 'packages.txt'. You can use"

View File

@@ -1,31 +0,0 @@
#!/bin/bash
# This script requires depot_tools to be on path.
print_usage () {
echo "Usage: create_ndk_cipd_package.sh <PATH_TO_NDK_ASSETS> <PLATFORM_NAME> <VERSION_TAG>"
echo " where:"
echo " - PATH_TO_NDK_ASSETS is the path to the unzipped NDK folder"
echo " - PLATFORM_NAME is one of linux-amd64, mac-amd64, or windows-amd64"
echo " - VERSION_TAG is the version of the NDK, e.g. r19b"
}
if [[ $3 == "" ]]; then
print_usage
exit 1
fi
if [[ ! -d "$1" ]]; then
echo "Directory $1 not found."
print_usage
exit 1
fi
if [[ $2 != "linux-amd64" && $2 != "mac-amd64" && $2 != "windows-amd64" ]]; then
echo "Unsupported platform $2."
echo "Valid options are linux-amd64, mac-amd64, windows-amd64."
print_usage
exit 1
fi
cipd create -in $1 -name flutter/android/ndk/$2 -install-mode copy -tag version:$3