=== modified file 'bin/aat.awk' --- bin/aat.awk 2014-07-08 20:10:05 +0000 +++ bin/aat.awk 2014-06-29 04:36:59 +0000 @@ -60,7 +60,6 @@ # find a file relative to current filename and overwrite that variable function find_file(name) { - if(DEBUG) printf "find_file(\"%s\") PWD=\"%s\"\n", name, PWD >"/dev/stderr" # TODO: include search path if(name ~ /^\//) { # absolute path @@ -82,11 +81,9 @@ print_dep(filename) } -function macro_readinto(args, varname, fname) { - varname = fname = args - sub(/[ \t].*$/, "", varname) - sub(/^[^ \t]+[ \t]+/, "", fname) - find_file(fname) +function macro_readinto(args, varname) { + varname = sub(/[ \t].*$/, "", args) + find_file(sub(/^[^ \t]+[ \t]+/, "", args)) tok_type=T_AWK while(getline "/dev/stderr" # Macro to recursively parse another template if(name == "include"){ file_old = filename