mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-13 09:48:47 +00:00
Match outboard filename without board revision
This commit is contained in:
parent
f6c0f70b57
commit
cb9c43171e
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -92,13 +92,13 @@ jobs:
|
||||
fi
|
||||
echo "shield_arg=$SHIELD_ARG" >> $GITHUB_OUTPUT
|
||||
keyboard_split="$keyboard"
|
||||
keyboard_base=`echo "$keyboard" | sed 's/_\(left\|right\)//'`
|
||||
keyboard_base=`echo "$keyboard" | sed -e 's/_\(left\|right\)//' -e 's/@.*//'`
|
||||
|
||||
configfile="${GITHUB_WORKSPACE}/miryoku_zmk/miryoku/custom_config.h"
|
||||
|
||||
tmpfile="$configfile.tmp"
|
||||
echo -n '#define ' > "$tmpfile"
|
||||
echo -n "MIRYOKU_KEYBOARD_$keyboard_base" | tr -c '[:alnum:]' '_' |tr '[:lower:]' '[:upper:]' >> "$tmpfile"
|
||||
echo -n "MIRYOKU_KEYBOARD_$keyboard_base" | tr -c '[:alnum:]' '_' | tr '[:lower:]' '[:upper:]' >> "$tmpfile"
|
||||
echo >> "$tmpfile"
|
||||
cat "$configfile" >> "$tmpfile"
|
||||
mv "$tmpfile" "$configfile"
|
||||
|
||||
@ -225,7 +225,7 @@ See https://github.com/manna-harbour/miryoku/discussions/81 for available and su
|
||||
|
||||
Outboards are files containing out-of-tree board and shield definition metadata.
|
||||
|
||||
Files are at [[.github/workflows/outboards]]. Outboards for boards and shields are contained in the corresponding subdirectories. Files are named after the board or shield.
|
||||
Files are at [[.github/workflows/outboards]]. Outboards for boards and shields are contained in the corresponding subdirectories. Files are named after the base board or shield name (i.e. without revision or ~_left~ / ~_right~ suffixes).
|
||||
|
||||
Outboards contain Bourne shell variable assignments. Supported variables are described below. See the files for samples.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user