3 # check that all key names in keymaps/* are known in <linux/input.h>
8 echo "need $KEYLIST please build first" >&2
12 missing=$(join -v 2 <(awk '{print tolower(substr($1,5))}' $KEYLIST | sort -u) <(awk '{print $2}' keymaps/*|sort -u))
13 [ -z "$missing" ] || {
14 echo "ERROR: unknown key names in keymaps/*:" >&2
19 # check that all maps referred to in $RULES exist
20 maps=$(sed -rn '/keymap \$name/ { s/^.*\$name ([^"]+).*$/\1/; p }' $RULES)
22 [ -e keymaps/$m ] || {
23 echo "ERROR: unknown map name in $RULES: $m" >&2
26 grep -q "keymaps/$m\>" Makefile.am || {
27 echo "ERROR: map file $m is not added to Makefile.am" >&2