aboutsummaryrefslogtreecommitdiffstats
path: root/lirc.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 /lirc.sh
downloadinput-c4d7dacb41039e087d20b8889a4d13bd4c9928f2.tar.gz
Initial revision
Diffstat (limited to 'lirc.sh')
-rwxr-xr-xlirc.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/lirc.sh b/lirc.sh
new file mode 100755
index 0000000..d929005
--- /dev/null
+++ b/lirc.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+INPUT="linux-input.h"
+cat <<EOF
+begin remote
+ name linux-input-layer
+ begin codes
+EOF
+awk "
+ /_MAX/ { next };
+ /KEY_RESERVED/ { next };
+ /#define (KEY|BTN)_/ { gsub(/KEY_/,\"\",\$2);
+ printf(\"\t\t%-20s 0x%04x\n\",
+ \$2,0x10000+strtonum(\$3)) }
+" < $INPUT
+cat <<EOF
+ end codes
+end remote
+EOF