From b18167bd619439aabffb946b3a27779b88d157a9 Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 05 2021 03:49:59 +0000 Subject: build system: cfgtest_prolog(), cfgtest_epilog(): respect cfgtest_silent[=yes]. --- 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'