Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v234
/
.
/
src
/
udev
/
generate-keyboard-keys-gperf.sh
blob: 5724e4e3dc5e25b684678d47fada9dc061f53736 [
file
] [
log
] [
blame
] [
raw
]
#!/bin/sh -eu
awk
' BEGIN {
print "struct key_name { const char* name; unsigned short id; };"
print "%null-strings"
print "%%"
}
/^KEY_/ { print tolower(substr($1 ,5)) ", " $1 }
{ print tolower($1) ", " $1 }
'
<
"$1"