From 5963b74670958b32a33b81d9e938312b49f7bc8b Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Mon, 19 Nov 2018 05:14:10 +0000 Subject: [PATCH] scripts/build: convert to build_msg Signed-off-by: Ian Leonard --- scripts/build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/build b/scripts/build index a5301ffe3f..c83781673d 100755 --- a/scripts/build +++ b/scripts/build @@ -209,11 +209,10 @@ for p in $_pkg_depends; do done if [ "${BUILD_WITH_DEBUG}" = "yes" ]; then - printf "%${BUILD_INDENT}c $(print_color CLR_BUILD "BUILD") $PACKAGE_NAME $(print_color CLR_TARGET "($TARGET)") [DEBUG]\n" ' '>&$SILENT_OUT + build_msg "CLR_BUILD" "BUILD" "${PACKAGE_NAME} $(print_color "CLR_TARGET" "(${TARGET})") [DEBUG]" "indent" else - printf "%${BUILD_INDENT}c $(print_color CLR_BUILD "BUILD") $PACKAGE_NAME $(print_color CLR_TARGET "($TARGET)")\n" ' '>&$SILENT_OUT + build_msg "CLR_BUILD" "BUILD" "${PACKAGE_NAME} $(print_color "CLR_TARGET" "(${TARGET})")" "indent" fi -export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE)) # virtual packages dont must be build, they only contains dependencies, so dont go further here if [ "$PKG_SECTION" = "virtual" ]; then @@ -267,7 +266,7 @@ fi if ! listcontains "meson cmake cmake-make configure ninja make autotools manual" "$PKG_TOOLCHAIN"; then die "$(print_color bold-red "ERROR:") unknown toolchain $PKG_TOOLCHAIN" fi -printf "%${BUILD_INDENT}c $(print_color CLR_TOOLCHAIN "TOOLCHAIN") $PKG_TOOLCHAIN${_auto_toolchain}\n" ' '>&$SILENT_OUT +build_msg "CLR_TOOLCHAIN" "TOOLCHAIN" "${PKG_TOOLCHAIN}${_auto_toolchain}" # make autoreconf if [ "$PKG_TOOLCHAIN" = "autotools" ]; then