commit 1ef3f189d210de8ee6f3f85e459b758d3e5c1555
parent 70ec1b3c320f9de9b751aa7e08431d5aea51d3ae
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 5 Jan 2016 16:40:55 +0100
fix C and B command
Diffstat:
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/bin/fileset.awk b/bin/fileset.awk
@@ -173,9 +173,10 @@ function process_statement() {
}
# 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++
@@ -200,24 +201,6 @@ function process_statement() {
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