1 # The commands beaing read-out and run assume CWD is the test/ directory
3 # start collecting a command to run
4 /^; TLSA_AUTOGEN$/ { active = 1; print; next; }
6 # keep appending to the command while there is a continuation-line marker (trailing backslash)
7 active==1 && /^;/ { print;
10 cmdstr = cmdstr " " substr($0, 2);
12 cmdstr = substr(cmdstr, 1, length(cmdstr)-1);
19 # apply the command to the next TLSA linem and go quiescent
20 active==2 && /TLSA/ { cmdstr | getline cmdres;
22 { printf("%s %s %s %s %s %s %s\n", $1, $2, $3, $4, $5, $6, cmdres); }
24 { printf("%s %s %s %s %s %s\n", $1, $2, $3, $4, $5, cmdres); }
30 # just copy other lines