From 04ff303730b3c6c38fd9d7df08f9e403ccd9de3c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 18 Jul 2009 15:07:55 +0200 Subject: extras/keymap: fix check-keymaps.sh for inline mappings Do not complain about missing keymap files when giving scancode/keyname pairs on the keymap command line in the rules. --- extras/keymap/check-keymaps.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extras/keymap/check-keymaps.sh b/extras/keymap/check-keymaps.sh index dc46f59531..15e8ef8c1e 100755 --- a/extras/keymap/check-keymaps.sh +++ b/extras/keymap/check-keymaps.sh @@ -17,8 +17,11 @@ missing=$(join -v 2 <(awk '{print tolower(substr($1,5))}' $KEYLIST | sort -u) <( } # 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 -- cgit v1.2.3-54-g00ecf