Author: grzywacz
Date: Sun Feb 27 14:32:00 2011
New Revision: 48659
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48659&view=rev
Log:
Save the list of broken files to a temporary file.
Modified:
trunk/utils/wesnoth-optipng
Modified: trunk/utils/wesnoth-optipng
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/wesnoth-optipng?rev=48659&r1=48658&r2=48659&view=diff
==============================================================================
--- trunk/utils/wesnoth-optipng (original)
+++ trunk/utils/wesnoth-optipng Sun Feb 27 14:32:00 2011
@@ -36,6 +36,7 @@
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 "****************************************************"
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
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits