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