Update MIRYOKU_KEYBOARD macro to handle board revisions

This commit is contained in:
Manna Harbour 2024-05-01 09:47:35 +10:00
parent 33d3e95f47
commit 7582540d65

View File

@ -98,7 +98,8 @@ jobs:
tmpfile="$configfile.tmp"
echo -n '#define ' > "$tmpfile"
echo "MIRYOKU_KEYBOARD_$keyboard_base" | tr '[a-z-]' '[A-Z_]' >> "$tmpfile"
echo -n "MIRYOKU_KEYBOARD_$keyboard_base" | tr -c '[:alnum:]' '_' |tr '[:lower:]' '[:upper:]' >> "$tmpfile"
echo >> "$tmpfile"
cat "$configfile" >> "$tmpfile"
mv "$tmpfile" "$configfile"