From cd77624256328b1924c49158b08f9d8c454fb637 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 10 Nov 2023 14:52:41 -0700 Subject: added md5sum to build-all.sh output per target (to make it easier to detect when builds did or didn't change) --- bin/build-all.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/build-all.sh b/bin/build-all.sh index 130923f..df72ad5 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -52,8 +52,11 @@ for TARGET in hw/*/*/**/"$UI".h ; do # try to compile, track result, and rename compiled files if bin/build.sh "$TARGET" ; then - mv -f "ui/$UI/$UI".hex "hex/$UI.$NAME.hex" - echo " > hex/$UI.$NAME.hex" + HEX_OUT="hex/$UI.$NAME.hex" + mv -f "ui/$UI/$UI".hex "$HEX_OUT" + MD5=$(md5sum "$HEX_OUT" | cut -d ' ' -f 1) + echo " # $MD5" + echo " > $HEX_OUT" PASS=$((PASS + 1)) PASSED="$PASSED $NAME" else -- cgit v1.2.3