mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 15:27:19 +00:00
14 lines
233 B
Awk
14 lines
233 B
Awk
|
BEGIN { FS="\"" }
|
||
|
|
||
|
function process(line, second) {
|
||
|
if (line ~ /^#include[ \t]*".+"[ \t]*$/) {
|
||
|
while (getline < second) {
|
||
|
process($0, $2)
|
||
|
}
|
||
|
} else {
|
||
|
print line
|
||
|
}
|
||
|
}
|
||
|
|
||
|
{ process($0, $2) }
|