summaryrefslogtreecommitdiff
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-03-21 08:43:18 +0000
committermidipix <writeonce@midipix.org>2021-03-23 09:55:11 +0000
commit9f0292c1f9be9aabc7bb468e6fe6c26f8c2ee1c6 (patch)
tree4fcdf94077c61587b6fb7cbd2578981e65f9710b /sofort/ccenv
parentef749d0f690339a23ab849082337ce1750e41286 (diff)
downloadsltdl-9f0292c1f9be9aabc7bb468e6fe6c26f8c2ee1c6.tar.bz2
sltdl-9f0292c1f9be9aabc7bb468e6fe6c26f8c2ee1c6.tar.xz
build system: ccenv_{tool|attr}_epilog(): properly handle long output strings.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r--sofort/ccenv/ccenv.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index fd09506..4b91387 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -68,6 +68,11 @@ ccenv_tool_epilog()
ccenv_line_dots='................................'
ccenv_tool_dlen="$((${#ccenv_line_dots} - ${#1}))"
+ case ${ccenv_tool_dlen} in
+ 0 | -* )
+ ccenv_tool_dlen='3' ;;
+ esac
+
printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s %s.\n" \
"${ccenv_line_dots}" "${1}"
@@ -110,6 +115,11 @@ ccenv_attr_epilog()
ccenv_line_dots='................................'
ccenv_tool_dlen="$((${#ccenv_line_dots} - 1 - ${#1}))"
+ case ${ccenv_tool_dlen} in
+ 0 | -* )
+ ccenv_tool_dlen='3' ;;
+ esac
+
printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s %s.\n" \
"${ccenv_line_dots}" "${1}"