diff options
Diffstat (limited to 'test/include.awk')
-rw-r--r-- | test/include.awk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/include.awk b/test/include.awk new file mode 100644 index 00000000..a506a813 --- /dev/null +++ b/test/include.awk @@ -0,0 +1,13 @@ +# input file should have lines which start with "@incl" followed by +# a name of a file to include +{ + if ((NF == 2) && ($1 == "@incl")) { + print " -- included file -- ", $2 + while ((getline line < $2) > 0) + print line + close ($2) + printf "\t***\n" + } else { + print + } +} |