From e51909cdcbc762296e0e42789057c239ba483a83 Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Sat, 13 Apr 2013 12:05:31 +0200 Subject: 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). --- name.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit