[client] egl: implement #include for shaders with awk

This commit is contained in:
Quantum
2021-08-09 05:15:42 -04:00
committed by Geoffrey McRae
parent 4eda01949d
commit 9b1d03fcfe
6 changed files with 95 additions and 81 deletions

View File

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