Author: ivanovic
Date: Fri Mar 11 15:31:18 2011
New Revision: 48840
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48840&view=rev
Log:
automatically remove the files with pixel differences from the changed file
list (making sure that those can't end committed)
Modified:
trunk/utils/wesnoth-optipng
Modified: trunk/utils/wesnoth-optipng
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/wesnoth-optipng?rev=48840&r1=48839&r2=48840&view=diff
==============================================================================
--- trunk/utils/wesnoth-optipng (original)
+++ trunk/utils/wesnoth-optipng Fri Mar 11 15:31:18 2011
@@ -106,7 +106,10 @@
echo "* processing ${1} (nice = ${2})..."
- if [ -e ${1} ] && [ -e ${1}.new ]; then
+ if [ ! -z `cat ${broken_file_list} | cut -f1 -d " " | grep ${1}` ]; then
+ echo "ERROR: temporary file ${1}.new has pixel differences
compared to the original, not using this optimized file."
+ rm -f ${1}.new
+ elif [ -e ${1} ] && [ -e ${1}.new ]; then
# Compare output size with original and print per-file
statistics
local old_png_size=`stat -c %s ${1} 2> /dev/null`
local new_png_size=`stat -c %s ${1}.new 2> /dev/null`
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits