7 /^\$set/ { SET_NAME = $2 }
8 # if a line does not start with $, and the first character of the second
9 # argument is a double quote, then delete the first argument from $0,
10 # then delete $1 from $0, concatenate TXT_,SET_NAME,_, and $1, and print
12 /^[^\$]/ { if (substr($2,1,1) == "\"")
15 print "#define TXT_" SET_NAME "_" arg1 " " $0
20 /^$/ { print $0 } # print line if blank
21 /^\$/ { sub(/^\$/ ,"/*",$0);
23 print $0; # C style comments