From cf0ed5c4bd07e191088977722010e9eec94a7c05 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 3 Nov 2023 09:07:37 -0600 Subject: moved variant builds under their parent, like "d4-219" -> "d4/219" --- bin/build-all.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/build-all.sh b/bin/build-all.sh index e3888fb..582ed87 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -25,18 +25,20 @@ FAILED='' # build targets are hw/*/**/$UI.h for TARGET in $( find hw/*/*/ -name "$UI".h ) ; do + # friendly name for this build + NAME=$(echo "$TARGET" | perl -ne 's|/|-|g; /hw-(.*)-'"$UI"'.h/ && print "$1\n";') + # limit builds to searched patterns, if given SKIP=0 if [ ! -z "$SEARCH" ]; then for text in $SEARCH ; do - echo "$TARGET" | grep -i "$text" > /dev/null + echo "$NAME $TARGET" | grep -i "$text" > /dev/null if [ 0 != $? ]; then SKIP=1 ; fi done fi if [ 1 = $SKIP ]; then continue ; fi - # friendly name for this build - NAME=$(echo "$TARGET" | perl -ne 's|/|-|g; /hw-(.*)-'"$UI"'.h/ && print "$1\n";') + # announce what we're going to build echo "===== $UI : $NAME =====" # figure out MCU type @@ -44,7 +46,6 @@ for TARGET in $( find hw/*/*/ -name "$UI".h ) ; do #if [ -z "$ATTINY" ]; then ATTINY=85 ; fi # try to compile - #echo bin/build.sh "$UI" "$TARGET" bin/build.sh "$TARGET" # track result, and rename compiled files -- cgit v1.2.3