summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-05-02 09:39:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-05-02 13:40:22 +0200
commit961094e21f4dddc44f28a72e1a2ef46d743b700c (patch)
treef9175f1a7026fd7a52d18fded608407edf76cba5
parent817fa59181707c583a48edf2e4ea057be325c3e8 (diff)
downloadbarebox-961094e21f4dddc44f28a72e1a2ef46d743b700c.tar.gz
barebox-961094e21f4dddc44f28a72e1a2ef46d743b700c.tar.xz
MAKEALL: rename variables
nb_errors and errors_list contain the number/list of warnings, not errors, so rename the variables accordingly. Link: https://lore.barebox.org/20230502073925.266116-9-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rwxr-xr-xMAKEALL14
1 files changed, 7 insertions, 7 deletions
diff --git a/MAKEALL b/MAKEALL
index 3ea0087a29..dc0fac0f44 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -3,8 +3,8 @@
# SPDX-License-Identifier: GPL-2.0-only
# Keep track of the number of builds and errors
-nb_errors=0
-errors_list=""
+nb_warnings=0
+warnings_list=""
nb_defconfigs=0
ret=0
@@ -61,8 +61,8 @@ stats() {
time_stop=$(date +%s)
time_diff=$((${time_stop} - ${time_start}))
printf "compiled in %4is\n" ${time_diff}
- if [ ${nb_errors} -gt 0 ] ; then
- echo "defconfigs with warnings or errors: ${nb_errors} (${errors_list} )"
+ if [ ${nb_warnings} -gt 0 ] ; then
+ echo "defconfigs with warnings or errors: ${nb_warnings} (${warnings_list} )"
fi
echo "----------------------------------------------------------"
@@ -147,8 +147,8 @@ do_build_target() {
fi
if [ -s "${log_err}" ] ; then
- nb_errors=$((nb_errors + 1))
- errors_list="${errors_list} ${target}"
+ nb_warnings=$((nb_warnings + 1))
+ warnings_list="${warnings_list} ${target}"
else
rm "${log_err}"
fi
@@ -284,4 +284,4 @@ fi
stats
-exit $nb_errors
+exit $nb_warnings