From: Kienan Stewart Date: Fri, 17 May 2024 15:24:45 +0000 (-0400) Subject: jjb: Add missing function to binutils build script X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f295b56d1540f4098e2a1e5ad3571f76b7b31961;p=lttng-ci.git jjb: Add missing function to binutils build script Change-Id: Ifa110754469a25ffe61b3cf28efb8190d8e30eb6 Signed-off-by: Kienan Stewart --- diff --git a/scripts/binutils-gdb/build.sh b/scripts/binutils-gdb/build.sh index e964220..73224e7 100755 --- a/scripts/binutils-gdb/build.sh +++ b/scripts/binutils-gdb/build.sh @@ -17,6 +17,25 @@ set -exu +print_header() { + set +x + + local message=" $1 " + local message_len + local padding_len + + message_len="${#message}" + padding_len=$(( (80 - (message_len)) / 2 )) + + printf '\n'; printf -- '#%.0s' {1..80}; printf '\n' + printf -- '-%.0s' {1..80}; printf '\n' + printf -- '#%.0s' $(seq 1 $padding_len); printf '%s' "$message"; printf -- '#%.0s' $(seq 1 $padding_len); printf '\n' + printf -- '-%.0s' {1..80}; printf '\n' + printf -- '#%.0s' {1..80}; printf '\n\n' + + set -x +} + failed_configure() { # Assume we are in the configured build directory echo "#################### BEGIN config.log ####################"