From 84773ccee99c73993218c3ab778f42a03661a13d Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Fri, 10 Dec 2021 10:09:11 -0800 Subject: [PATCH] Cleanup old ndk CIPD upload script (flutter/engine#30253) --- .../tools/android_sdk/create_cipd_packages.sh | 2 +- .../flutter/tools/create_ndk_cipd_package.sh | 31 ------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100755 engine/src/flutter/tools/create_ndk_cipd_package.sh diff --git a/engine/src/flutter/tools/android_sdk/create_cipd_packages.sh b/engine/src/flutter/tools/android_sdk/create_cipd_packages.sh index d88bd736ba..99ee514072 100755 --- a/engine/src/flutter/tools/android_sdk/create_cipd_packages.sh +++ b/engine/src/flutter/tools/android_sdk/create_cipd_packages.sh @@ -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" diff --git a/engine/src/flutter/tools/create_ndk_cipd_package.sh b/engine/src/flutter/tools/create_ndk_cipd_package.sh deleted file mode 100755 index 7651b19573..0000000000 --- a/engine/src/flutter/tools/create_ndk_cipd_package.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -# This script requires depot_tools to be on path. - -print_usage () { - echo "Usage: create_ndk_cipd_package.sh " - 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