LookingGlass/client/renderers/EGL/glsl.include.awk

14 lines
255 B
Awk
Raw Permalink Normal View History

BEGIN { FS="\"" }
function process(line, second) {
if (line ~ /^#include[ \t]*".+"[ \t\r]*$/) {
while (getline < second) {
process($0, $2)
}
} else {
print line
}
}
{ process($0, $2) } END { print "\0"; }