Dmitry V. Levin
17e3860ee8
* linux/ioctlent-filter.awk: New file. * Makefile.am: Use it. * linux/ioctlent.h.in: Removed redundant "*32" entries.
20 lines
194 B
Awk
20 lines
194 B
Awk
#!/bin/awk -f
|
|
# Filter out redundant "*32" symbols.
|
|
|
|
BEGIN {
|
|
s=""
|
|
c=""
|
|
}
|
|
|
|
NF == 3 && $2 ~ /^"[^",]*",$/ {
|
|
if ($2 == s && $3 == c)
|
|
next
|
|
s = $2
|
|
sub(/",$/, "32\",", s)
|
|
c = $3
|
|
}
|
|
|
|
{
|
|
print
|
|
}
|