🧑‍💻 Keep state for build_all_examples --limit

This commit is contained in:
Scott Lahteine
2022-07-23 00:36:03 -05:00
parent 2634d0cc52
commit 8cf4c0515d
3 changed files with 34 additions and 29 deletions

View File

@@ -5,6 +5,8 @@
# Usage: build_example internal config-home config-folder
#
. mfutil
# Require 'internal' as the first argument
[[ "$1" == "internal" ]] || { echo "Don't call this script directly, use build_all_examples instead." ; exit 1 ; }
@@ -25,14 +27,12 @@ cp "$SUB"/_Statusscreen.h Marlin/ 2>/dev/null
set -e
# Strip #error lines from Configuration.h
SED=$(which gsed sed | head -n1)
IFS=$'\n'; set -f
$SED -i~ -e "20,30{/#error/d}" Marlin/Configuration.h
rm Marlin/Configuration.h~
unset IFS; set +f
echo "Building the firmware now..."
HERE=`dirname "$0"`
$HERE/mftest -s -a -n1 || { echo "Failed"; exit 1; }
echo "Success"