aboutsummaryrefslogtreecommitdiffstats
path: root/name.sh
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-04-21 11:55:44 +0000
committerkraxel <kraxel>2004-04-21 11:55:44 +0000
commitc4d7dacb41039e087d20b8889a4d13bd4c9928f2 (patch)
tree0aef1f53f2e8cd55c4db8915d9d9a1265dd97adc /name.sh
downloadinput-c4d7dacb41039e087d20b8889a4d13bd4c9928f2.tar.gz
Initial revision
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