summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-05 09:55:31 +0000
committermidipix <writeonce@midipix.org>2020-01-05 09:56:37 +0000
commitfe77c46b985a9b93259de3c6bd077dd8a8d996b9 (patch)
treef1b585574a5ae01c466f14f0565b4e672fca3c94
parent169d40b168a4ca329a7233a2e5f3e914d95d05fe (diff)
downloadapimagic-fe77c46b985a9b93259de3c6bd077dd8a8d996b9.tar.bz2
apimagic-fe77c46b985a9b93259de3c6bd077dd8a8d996b9.tar.xz
build system: informative output: pretty printing.
-rwxr-xr-xconfigure8
-rw-r--r--sofort/ccenv/ccenv.sh14
2 files changed, 11 insertions, 11 deletions
diff --git a/configure b/configure
index 75aea0b..9bab0f3 100755
--- a/configure
+++ b/configure
@@ -48,13 +48,13 @@ warning_msg()
output_step_prolog()
{
- mb_line_dots='..................................'
- mb_line_dots="${mb_line_dots}${mb_line_dots}"
- mb_step_desc="${mb_package} : ${1##*/} : ${2}() "
+ mb_line_dots='.................................'
+ mb_line_dots="${mb_line_dots}.${mb_line_dots}"
+ mb_step_desc="${mb_package} : ${1##*/} : ${2}() "
mb_step_dlen="$((${#mb_line_dots} - ${#mb_step_desc}))"
printf "configure step: ${2}()\n" >&3
- printf "%s%${mb_step_dlen}.${mb_step_dlen}s " "${mb_step_desc}" "${mb_line_dots}"
+ printf "%s%${mb_step_dlen}.${mb_step_dlen}s " "${mb_step_desc}" "${mb_line_dots}"
}
output_step_epilog()
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index f761b67..113a74e 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -50,14 +50,14 @@ ccenv_comment()
ccenv_tool_prolog()
{
- ccenv_line_dots='......................................'
+ ccenv_line_dots='.....................................'
ccenv_tool_desc="=== checking for ${1}"
ccenv_tool_dlen="${#ccenv_line_dots}"
printf '\n%s\n' '________________________' >&3
printf "ccenv: checking for ${1}\n\n" >&3
printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s" \
- "${ccenv_tool_desc} ${mb_line_dots}"
+ "${ccenv_tool_desc} ${mb_line_dots}"
}
@@ -66,7 +66,7 @@ ccenv_tool_epilog()
ccenv_line_dots='................................'
ccenv_tool_dlen="$((${#ccenv_line_dots} - ${#1}))"
- printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s %s.\n" \
+ printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s %s.\n" \
"${ccenv_line_dots}" "${1}"
if [ "${1}" = 'false' ]; then
@@ -91,8 +91,8 @@ ccenv_tool_variant_epilog()
ccenv_attr_prolog()
{
- ccenv_line_dots='......................................'
- ccenv_attr_desc="=== detect ${ccenv_cfgtype} ${1}"
+ ccenv_line_dots=' .....................................'
+ ccenv_attr_desc=" == detect ${ccenv_cfgtype} ${1}"
ccenv_attr_dlen="${#ccenv_line_dots}"
printf "%${ccenv_attr_dlen}.${ccenv_attr_dlen}s" \
@@ -106,9 +106,9 @@ ccenv_attr_prolog()
ccenv_attr_epilog()
{
ccenv_line_dots='................................'
- ccenv_tool_dlen="$((${#ccenv_line_dots} - ${#1}))"
+ ccenv_tool_dlen="$((${#ccenv_line_dots} - 1 - ${#1}))"
- printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s %s.\n" \
+ printf "%${ccenv_tool_dlen}.${ccenv_tool_dlen}s %s.\n" \
"${ccenv_line_dots}" "${1}"
printf '\n\nccenv: detected result: %s\n' "${1}" >&3