From 58b17b1a7424fce11f8914ad7045881fdd2d6b9c Mon Sep 17 00:00:00 2001 From: "Sascha Kuehndel (InuSasha)" Date: Wed, 22 Aug 2018 21:19:43 +0200 Subject: [PATCH] create_addon now also writes a summary when log writing is used. on special wish of @cvh --- scripts/create_addon | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/create_addon b/scripts/create_addon index a57af2ce6e..d8cbb15af2 100755 --- a/scripts/create_addon +++ b/scripts/create_addon @@ -238,6 +238,7 @@ addons_drop="" show_only="false" write_logs="no" log_path="$BUILD/logs" +summary_file="/dev/null" export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE)) # read addons from parameter list @@ -264,6 +265,8 @@ case "$write_logs" in esac if [ -n "$log_path" ]; then mkdir -p "$log_path" + summary_file="$log_path/addon-summary.log" + rm -f $summary_file fi # check environment and create toolchain @@ -301,10 +304,12 @@ for addon in $(tr " " "\n" <<< $addons | sort -u); do if [ ${PIPESTATUS[0]} != 0 ]; then addons_failed+="$addon " printf "$(print_color CLR_ERROR "ADDON FAILED $addon")\n" ' '>&$SILENT_OUT + echo "failed: ${addon}" >> $summary_file else if [ "$remove_success_logs" = "true" ]; then rm -f $log_file fi + echo "success: ${addon}" >> $summary_file fi done