=== modified file 'README' --- README 2016-03-01 14:39:40 +0000 +++ README 2015-12-21 21:07:36 +0000 @@ -76,9 +76,6 @@ create regular file with content specified as base64, additional flags as with "b" -X - create regular file with content specified as hexdump as produced by xxd - ! run shell command on file, depending on the flags: "i" - redirect stdin from the file for the command === modified file 'bin/fileset.awk' --- bin/fileset.awk 2016-03-01 14:39:40 +0000 +++ bin/fileset.awk 2016-01-05 15:40:55 +0000 @@ -172,19 +172,16 @@ continue } - # Cat, Copy, Content; eats rest of statement and puts it into the file - # Binary, Base64; decodes the arguments and changes file content - # heXdump; decodes the arguments and replaces file content - if(cchar ~ /[bBcCX]/) { + # 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 ~ /[BCX]/) + content = get_argument(cchar ~ /[BC]/) func_name = "fn" func_num++ if(cchar ~ /[bB]/) { funcs[func_name] = "\tbase64 <<<"quoted(content) - if(cchar ~ /[X]/) { - funcs[func_name] = "\txxd -r <<<"quoted(content) } else { # unless disabled with the N flag, append newline at the end of # last line, if not already present === modified file 'bin/fslist' --- bin/fslist 2016-03-01 14:39:40 +0000 +++ bin/fslist 2016-01-05 15:21:24 +0000 @@ -43,11 +43,7 @@ : ${print_b:=1} else : ${print_b:=0} - if (($+commands[file])) && (($+commands[xxd])); then - : ${print_x:=1} - fi fi -: ${print_x:=0} fnames=( ) for arg in "${@:-$ROOT}"; do @@ -94,13 +90,8 @@ statement $'l\t'$s[link] $'\t' elif [[ $t == f ]]; then if (($print_c)); then - if (($s[size])) && (($print_b + $print_x)) && \ - [[ $(file -bi $fname) != text/* ]]; then - if (($print_x)); then - statement X$'\t'"$(xxd $fname)" $'\n' - else - statement B$'\t'"$(base64 <$fname)" $'\n' - fi + if (($print_b)) && [[ $(file -bi $fname) != text/* ]]; then + statement B$'\t'"$(base64 <$fname)" $'\n' else IFS= read -r -d '' content <$fname flags=''