aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-01-14 12:13:16 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-01-14 12:13:16 +0100
commit36495af81fb9d312bb04250fba3ea7fa2c209c81 (patch)
treeed86c33f6c256941c937659c266e060c05c275b9
parent38da4c4420ea6d7b3cf120c0902458e7d8256560 (diff)
downloadbusybox-36495af81fb9d312bb04250fba3ea7fa2c209c81.tar.gz
size_single_applets.sh: fix a bug which mishandles e.g. "udhcpc6" name
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xsize_single_applets.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/size_single_applets.sh b/size_single_applets.sh
index 0fa56e09e..ee16d4de7 100755
--- a/size_single_applets.sh
+++ b/size_single_applets.sh
@@ -22,7 +22,7 @@ for app; do
}
test $mintext -gt $text && {
mintext=$text
- echo "New mintext from $app: $mintext"
+ echo "# New mintext from $app: $mintext"
}
eval "text_${app}=$text"
done
@@ -31,7 +31,7 @@ for app; do
b="busybox_${app}"
test -f "$b" || continue
eval "text=\$text_${app}"
- echo "$app adds $((text-mintext))"
+ echo "# $app adds $((text-mintext))"
done
grep ^IF_ include/applets.h \
@@ -60,7 +60,7 @@ grep ^IF_ include/applets.h \
sz_frac=$(( (sz - sz_kb*1000) ))
sz_f=$((sz_frac / 100))
- echo -n "sed 's/bool \"$name *(*[0-9tinykbytes .]*)*\"/"
+ echo -n "sed 's/bool \"$name"'[" ](*[0-9tinykbytes .]*)*"*$/'
if test "$sz_kb" -ge 10; then
echo -n "bool \"$name (${sz_kb} kb)\""
elif test "$sz_kb" -gt 0 -a "$sz_f" = 0; then