blob: b05140af7af5ca07e6cbbd0dee307ae96a0e5429 (
plain)
1
2
3
4
5
6
7
8
9
10
|
BEGIN { special = 0 }
/REQUESTS/ { nreqs = split(requests, reqs)
for (i = 1; i <= nreqs; ++i)
printf "#ifdef\t%s\n DEFINE(\"%s\", %s);\n#endif\n", \
reqs[i], reqs[i], reqs[i]
special = 1 }
{ if (special == 0) print $0; special = 0 }
|