check-keymaps.sh: Allow running separately

Provide default arguments for SRCDIR and KEYLIST, so that you can just run this
from the root of the source tree, separately from make distcheck.
This commit is contained in:
Martin Pitt 2011-10-26 07:38:06 +02:00
parent 7796af6ae6
commit 3aa3be179f
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
# check that all key names in keymaps/* are known in <linux/input.h>
# and that all key maps listed in the rules are valid and present in
# Makefile.am
SRCDIR=$1
KEYLIST=$2
SRCDIR=${1:-.}
KEYLIST=${2:-extras/keymap/keys.txt}
KEYMAPS_DIR=$SRCDIR/extras/keymap/keymaps #extras/keymap/keymaps
RULES=$SRCDIR/extras/keymap/95-keymap.rules