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