fileset

git mirror of https://ccx.te2000.cz/bzr/fileset
git clone https://ccx.te2000.cz/git/fileset
Log | Files | Refs | README

commit 1c195105aa3163c7ce0353fd3d1c94b2da4415a7
parent d412d2860ae84358c55833ef1286cf18f0ca1a2d
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Mon,  1 Aug 2022 05:07:10 +0200

Avoid using <<< as busybox sh doesn't seem to support it (and it's not POSIX)
Diffstat:
Mbin/fileset.awk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/fileset.awk b/bin/fileset.awk @@ -200,7 +200,7 @@ function process_statement() { printf_fmt = ( \ crest ~ /n/ || (crest !~ /N/ && content !~ /\n$/) \ ) ? "%s\\n" : "%s" - if(printf_fmt == "%s") { + if(printf_fmt == "%s" || length(content) < 1800) { # TODO: split into several when needed funcs[func_name] = "\tprintf '"printf_fmt"' "quoted(content) } else {