aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Haufe <sur5r@sur5r.net>2013-04-13 12:05:31 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-04-15 10:30:59 +0200
commite51909cdcbc762296e0e42789057c239ba483a83 (patch)
treec8356837be8924f1f833c7031f29401deebc08c5
parent68d4760f2149f1b3c9517b7ac566287a9eb0299e (diff)
downloadinput-e51909cdcbc762296e0e42789057c239ba483a83.tar.gz
Ignore KEY_MIN_INTERESTING in name.sh
KEY_MIN_INTERESTING is only a marker and not a real keycode, so ignore it in name.sh to avoid reporting in e.g. print_event() and thus input-events(8).
-rwxr-xr-xname.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/name.sh b/name.sh
index 744e9b8..a8e709c 100755
--- a/name.sh
+++ b/name.sh
@@ -4,7 +4,8 @@ TYPE="$1"
INPUT="/usr/include/linux/input.h"
awk "
+ /KEY_MIN_INTERESTING/ {next};
/EV_VERSION/ { next };
/_MAX/ { next };
/#define $1_/ { printf(\"\t[ %-16s ] = \\\"%s\\\",\n\", \$2, \$2); }
-" < $INPUT \ No newline at end of file
+" < $INPUT