File: lirc.sh

package info (click to toggle)
input-utils 0.0.20051128-4
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 264 kB
  • ctags: 820
  • sloc: ansic: 1,683; makefile: 42; sh: 25
file content (19 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
INPUT="linux-input.h"
cat <<EOF
begin remote
	name linux-input-layer
	bits 32
	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