aboutsummaryrefslogtreecommitdiffstats
path: root/name.sh
diff options
context:
space:
mode:
Diffstat (limited to 'name.sh')
-rwxr-xr-xname.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/name.sh b/name.sh
new file mode 100755
index 0000000..562e0b4
--- /dev/null
+++ b/name.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+TYPE="$1"
+INPUT="linux-input.h"
+
+awk "
+ /EV_VERSION/ { next };
+ /_MAX/ { next };
+ /#define $1_/ { printf(\"\t[ %-16s ] = \\\"%s\\\",\n\", \$2, \$2); }
+" < $INPUT \ No newline at end of file