From 3e54120f36ef5a8be27a6205cd705637b5db0d88 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 22 Nov 2020 01:07:13 -0800 Subject: [PATCH] Add a deprecation warning to the "old" kaleidoscope-builder --- bin/kaleidoscope-builder | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 38769529..6d2c9f90 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -586,6 +586,17 @@ EOF } +deprecation_message() { +echo "kaleidoscope-builder is deprecated and will be removed" +echo "by February 15, 2021" +echo "" +echo "To switch to the new build system, replace your sketch's" +echo "Makefile with a copy of:" +echo "" +echo "${KALEIDOSCOPE_DIR}/etc/Makefile.sketch" +echo "" +} + usage () { cat <<- EOF Usage: $0 SKETCH commands... @@ -627,6 +638,12 @@ usage () { EOF } + +KALEIDOSCOPE_DIR="$(cd "$(dirname "$0")"/..; pwd)" +# shellcheck disable=SC2034 +KALEIDOSCOPE_BIN_DIR="${KALEIDOSCOPE_DIR}/bin/" + + help () { usage } @@ -643,11 +660,8 @@ fi ## ## - if there is only one argument, that's a command -KALEIDOSCOPE_DIR="$(cd "$(dirname "$0")"/..; pwd)" -# shellcheck disable=SC2034 -KALEIDOSCOPE_BIN_DIR="${KALEIDOSCOPE_DIR}/bin/" - +deprecation_message # shellcheck disable=SC2155 @@ -668,6 +682,7 @@ done # shellcheck disable=SC1090 + if [ -n "${VERBOSE}" ] && [[ "${VERBOSE}" -gt 0 ]]; then ARDUINO_VERBOSE="-verbose" else