X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fudev%2Fkeymap%2Fcheck-keymaps.sh;h=c4572745e031b532f21be3444c4d4696387475c1;hb=d91b8841d7a3ee08aa686852154b08a3e9eb9732;hp=765e582af4df6352630fdc917d79535790d66f73;hpb=e8854556417197e195196e94c74bc01ff5d064ff;p=elogind.git diff --git a/src/udev/keymap/check-keymaps.sh b/src/udev/keymap/check-keymaps.sh index 765e582af..c4572745e 100755 --- a/src/udev/keymap/check-keymaps.sh +++ b/src/udev/keymap/check-keymaps.sh @@ -5,7 +5,7 @@ # Makefile.am SRCDIR=${1:-.} KEYLIST=${2:-src/udev/keymap/keys.txt} -KEYMAPS_DIR=$SRCDIR/src/udev/keymap/keymaps +KEYMAPS_DIR=$SRCDIR/keymaps RULES=$SRCDIR/src/udev/keymap/95-keymap.rules [ -e "$KEYLIST" ] || { @@ -16,7 +16,7 @@ RULES=$SRCDIR/src/udev/keymap/95-keymap.rules missing=$(join -v 2 <(awk '{print tolower(substr($1,5))}' $KEYLIST | sort -u) \ <(grep -hv '^#' ${KEYMAPS_DIR}/*| awk '{print $2}' | sort -u)) [ -z "$missing" ] || { - echo "ERROR: unknown key names in src/udev/keymap/keymaps/*:" >&2 + echo "ERROR: unknown key names in keymaps/*:" >&2 echo "$missing" >&2 exit 1 } @@ -31,7 +31,7 @@ for m in $maps; do echo "ERROR: unknown map name in $RULES: $m" >&2 exit 1 } - grep -q "src/udev/keymap/keymaps/$m\>" $SRCDIR/Makefile.am || { + grep -q "keymaps/$m\>" $SRCDIR/Makefile.am || { echo "ERROR: map file $m is not added to Makefile.am" >&2 exit 1 }