aboutsummaryrefslogtreecommitdiffstats
path: root/name.sh
blob: a8e709ce6b522af1986f7c678bfa8c89918c608f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

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