]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
check-keymaps.sh: Allow running separately
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 26 Oct 2011 05:38:06 +0000 (07:38 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 26 Oct 2011 05:38:06 +0000 (07:38 +0200)
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.

extras/keymap/check-keymaps.sh

index c92246a2cd3fdd35d2ea515d16897059f4058579..df18c3f488f19c8c6b5f5a63bea06ac08a6a3289 100755 (executable)
@@ -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