Skip to content

Commit

Permalink
Match outboard filename without board revision
Browse files Browse the repository at this point in the history
  • Loading branch information
manna-harbour committed May 1, 2024
1 parent f6c0f70 commit cb9c431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit cb9c431

Please sign in to comment.