aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hylafaxplus/common-functions-busybox-awk.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-03-04 16:20:30 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-03-04 16:20:30 +0000
commit659ef779f87acd391076d5436e5450a3ea0b040a (patch)
tree9596a112ae13bd6529318e47d3b813b0c1a29f65 /testing/hylafaxplus/common-functions-busybox-awk.patch
parent1558e940450d0f04dada624379f332e62dfa5e6e (diff)
downloadaports-659ef779f87acd391076d5436e5450a3ea0b040a.tar.gz
aports-659ef779f87acd391076d5436e5450a3ea0b040a.tar.bz2
aports-659ef779f87acd391076d5436e5450a3ea0b040a.tar.xz
testing/hylafaxplus: upgrade to 5.6.1. Fixes #898
Diffstat (limited to 'testing/hylafaxplus/common-functions-busybox-awk.patch')
-rw-r--r--testing/hylafaxplus/common-functions-busybox-awk.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/hylafaxplus/common-functions-busybox-awk.patch b/testing/hylafaxplus/common-functions-busybox-awk.patch
new file mode 100644
index 0000000000..f3a101a3cf
--- /dev/null
+++ b/testing/hylafaxplus/common-functions-busybox-awk.patch
@@ -0,0 +1,22 @@
+diff --git a/util/common-functions.sh.in b/util/common-functions.sh.in
+index 38049e3..54cfd6b 100644
+--- a/util/common-functions.sh.in
++++ b/util/common-functions.sh.in
+@@ -40,7 +40,7 @@ setInfoSize()
+ DICTTIMETORECV DICTSIGNALRATE DICTDATAFORMAT DICTERRCORRECT \
+ DICTCALLID1 DICTCALLID2 DICTCALLID3 DICTCALLID4 DICTCALLID \
+ DICTCALLID6 DICTCALLID7 DICTRECEIVEDON DICTCOMMID; do
+- THISLEN="`eval echo \\\""$"$ITEM\\\" | $AWK 'BEGIN {L=0} length>L {L=length} END {print L}' | $SED 's/ //g'`"
++ THISLEN=`eval 'echo ${#'$ITEM'}'`
+ if [ $THISLEN -gt $INFOSIZE ]; then INFOSIZE=$THISLEN; fi
+ done
+ }
+@@ -57,7 +57,7 @@ setItemSize()
+ DICTCALLS DICTPAGES DICTATTEMPTS DICTDIRNUM DICTRECEIVER DICTQUALITY \
+ DICTPAGEWIDTH DICTPAGELENGTH DICTDATAFORMAT DICTREMOTEEQUIPMENT \
+ DICTREMOTESTATION DICTSIGNALRATE; do
+- THISLEN="`eval echo \\\""$"$ITEM\\\" | $AWK 'BEGIN {L=0} length>L {L=length} END {print L}' | $SED 's/ //g'`"
++ THISLEN=`eval 'echo ${#'$ITEM'}'`
+ if [ $THISLEN -gt $ITEMSIZE ]; then ITEMSIZE=$THISLEN; fi
+ done
+ }