=== modified file 'bin/fileset.awk' --- bin/fileset.awk 2016-01-05 15:40:55 +0000 +++ bin/fileset.awk 2016-01-05 15:21:24 +0000 @@ -173,10 +173,9 @@ } # cat, copy, content; eats rest of statement and puts it into the file - # binary, base64; decodes the arguments and changes file content if(cchar ~ /[bBcC]/) { shellfunc("f 1", crest) - content = get_argument(cchar ~ /[BC]/) + content = get_argument(cchar ~ "BC") func_name = "fn" func_num++ @@ -201,6 +200,24 @@ continue } + # binary, base64; decodes the arguments and changes file content + if(cchar ~ /[bB]/) { + shellfunc("f", crest) + content = get_argument(cchar == "B") + + func_name = "fn" func_num++ + funcs[func_name] = "\tbase64 <<<"quoted(content) + + if(crest ~ /a/) { + print_b("if ! $check_only; then") + print_i(func_name " >>" fname) + print_e("fi") + } else { + print_i("c " func_name) + } + continue + } + # run shell command if(cchar == "!") { # use as Filter