Do not complain about missing keymap files when giving scancode/keyname pairs
on the keymap command line in the rules.
}
# check that all maps referred to in $RULES exist
-maps=$(sed -rn '/keymap \$name/ { s/^.*\$name ([^"]+).*$/\1/; p }' $RULES)
+maps=$(sed -rn '/keymap \$name/ { s/^.*\$name ([^"[:space:]]+).*$/\1/; p }' $RULES)
for m in $maps; do
+ # ignore inline mappings
+ [ "$m" = "${m#0x}" ] || continue
+
[ -e keymaps/$m ] || {
echo "ERROR: unknown map name in $RULES: $m" >&2
exit 1