From 1bf1598f0c536ebd53318366faae3bc4d774c238 Mon Sep 17 00:00:00 2001 From: Karol Nowak Date: Sun, 27 Feb 2011 13:32:00 +0000 Subject: [PATCH] Save the list of broken files to a temporary file. --- utils/wesnoth-optipng | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/wesnoth-optipng b/utils/wesnoth-optipng index 3c0f2f0f099..93b46c4b225 100755 --- a/utils/wesnoth-optipng +++ b/utils/wesnoth-optipng @@ -36,6 +36,7 @@ total_savings_size=0 total_savings_filecount=0 new_file_list="new_file_list.tmp" old_file_list="old_file_list.tmp" +broken_file_list="broken_file_list.tmp" if [ -e "/proc/cpuinfo" ] && [ `grep processor /proc/cpuinfo | wc -l` -gt 1 ]; then max_number_threads=`grep processor /proc/cpuinfo | wc -l` @@ -223,12 +224,14 @@ echo -ne "\n" echo "****************************************************" echo "* comparing original and new images pixel-by-pixel *" echo "****************************************************" -$(dirname ${0})/compare_images.py ${old_file_list} ${new_file_list} +$(dirname ${0})/compare_images.py ${old_file_list} ${new_file_list} > ${broken_file_list} if [ $? -ne 0 ]; then echo "****************************************************" echo "* Unable to compare compressed and original images *" echo "****************************************************" +else + echo "list of broken files saved to: ${broken_file_list}" fi # collect statistics and remove temp files