summaryrefslogtreecommitdiffhomepage
path: root/sofort/cfgtest
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-05 03:44:32 +0000
committermidipix <writeonce@midipix.org>2021-06-05 03:49:58 +0000
commitaf0408a307c88add847d62d215e7b0de060d32e3 (patch)
treed44202ee4b8034c1e95d7669b1a1984e799a49d7 /sofort/cfgtest
parentf511d33ec11a713eddc13d11f2afc206df10ed8e (diff)
downloadmmglue-af0408a307c88add847d62d215e7b0de060d32e3.tar.bz2
mmglue-af0408a307c88add847d62d215e7b0de060d32e3.tar.xz
build system: cfgtest_prolog(), cfgtest_epilog(): respect cfgtest_silent[=yes].
Diffstat (limited to 'sofort/cfgtest')
-rw-r--r--sofort/cfgtest/cfgtest.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 478826e..7e58a7e 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -83,8 +83,11 @@ cfgtest_prolog()
printf '\n%s\n' '________________________' >&3
printf "cfgtest: probing for ${mb_cfgtest_cfgtype} ${1}: ${2}\n\n" >&3
- printf "%${cfgtest_tool_dlen}.${cfgtest_tool_dlen}s" \
- "${cfgtest_tool_desc} ${mb_line_dots}"
+
+ if [ "${cfgtest_silent:-}" != 'yes' ]; then
+ printf "%${cfgtest_tool_dlen}.${cfgtest_tool_dlen}s" \
+ "${cfgtest_tool_desc} ${mb_line_dots}"
+ fi
}
@@ -93,8 +96,10 @@ cfgtest_epilog()
cfgtest_line_dots='...............'
cfgtest_tool_dlen="$((${#cfgtest_line_dots} - ${#2}))"
- printf "%${cfgtest_tool_dlen}.${cfgtest_tool_dlen}s %s.\n" \
- "${cfgtest_line_dots}" "${2}"
+ if [ "${cfgtest_silent:-}" != 'yes' ]; then
+ printf "%${cfgtest_tool_dlen}.${cfgtest_tool_dlen}s %s.\n" \
+ "${cfgtest_line_dots}" "${2}"
+ fi
if [ "${1}" = 'snippet' ] && [ -f 'a.out' ]; then
rm -f 'a.out'