From 9ddb54e6ad034680bc21ecc9cc78daf958ed6433 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 20 Apr 2025 12:21:11 -0600 Subject: [PATCH] util/abuild: Update syntax from 'function func' to 'func()' Abuild used a mix of 'function funcname' and 'funcname()`. This standardizes them all to use the 'funcname()' format. While they do the same thing, we should be consistent across the file, and the 'funcname()' syntax is generally preferred. Change-Id: I7530aa41b6413f0d5febe3d8a0db4a98113e1448 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/c/coreboot/+/87369 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- util/abuild/abuild | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/util/abuild/abuild b/util/abuild/abuild index d126f79253..5e4080b84f 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -103,7 +103,7 @@ ts_basetime_str=$(date -u --date=@${ts_exec_shell}) trap interrupt INT -function interrupt +interrupt() { printf "\n%s: execution interrupted manually.\n" "$0" if [[ "$mode" == "junit" ]]; then @@ -112,18 +112,18 @@ function interrupt exit 1 } -function debug +debug() { [[ "$verbose" == "true" ]] && printf "%s\n" "$*" } -function junit +junit() { [[ "$mode" == "junit" ]] && printf "%s\n" "$*" >> "$XMLFILE" return 0 } -function junitfile +junitfile() { test "$mode" == "junit" && { printf '" } -function record_mainboard +record_mainboard() { local log=$1 @@ -627,7 +627,7 @@ function record_mainboard } # One target may build several configs -function build_target +build_target() { local MAINBOARD=$1 local MAINBOARD_LC @@ -661,7 +661,7 @@ function build_target remove_target "$MAINBOARD" } -function remove_target +remove_target() { if [[ "$remove" != "true" ]]; then return @@ -681,7 +681,7 @@ function remove_target return } -function myhelp +myhelp() { cat << __END_OF_HELP Usage: $0 [options] @@ -736,7 +736,7 @@ Options:\n __END_OF_HELP } -function myversion +myversion() { cat << EOF