File: name.sh

package info (click to toggle)
input-utils 1.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 380 kB
  • ctags: 1,091
  • sloc: ansic: 1,900; sh: 25; makefile: 6
file content (10 lines) | stat: -rwxr-xr-x 186 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

TYPE="$1"
INPUT="/usr/include/linux/input.h"

awk "
	/EV_VERSION/	{ next };
	/_MAX/		{ next };
	/#define $1_/	{ printf(\"\t[ %-16s ] = \\\"%s\\\",\n\", \$2, \$2); }
" < $INPUT