Add a deprecation warning to the "old" kaleidoscope-builder

pull/936/head
Jesse Vincent 4 years ago
parent 41a3c5da38
commit 3e54120f36
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -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 () { usage () {
cat <<- EOF cat <<- EOF
Usage: $0 SKETCH commands... Usage: $0 SKETCH commands...
@ -627,6 +638,12 @@ usage () {
EOF EOF
} }
KALEIDOSCOPE_DIR="$(cd "$(dirname "$0")"/..; pwd)"
# shellcheck disable=SC2034
KALEIDOSCOPE_BIN_DIR="${KALEIDOSCOPE_DIR}/bin/"
help () { help () {
usage usage
} }
@ -643,11 +660,8 @@ fi
## ##
## - if there is only one argument, that's a command ## - 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 # shellcheck disable=SC2155
@ -668,6 +682,7 @@ done
# shellcheck disable=SC1090 # shellcheck disable=SC1090
if [ -n "${VERBOSE}" ] && [[ "${VERBOSE}" -gt 0 ]]; then if [ -n "${VERBOSE}" ] && [[ "${VERBOSE}" -gt 0 ]]; then
ARDUINO_VERBOSE="-verbose" ARDUINO_VERBOSE="-verbose"
else else

Loading…
Cancel
Save