Author: ai0867
Date: Sun Oct 17 00:33:19 2010
New Revision: 47069

URL: http://svn.gna.org/viewcvs/wesnoth?rev=47069&view=rev
Log:
Exit if failing to run pngcheck

Modified:
    trunk/utils/png_format_check.sh

Modified: trunk/utils/png_format_check.sh
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/png_format_check.sh?rev=47069&r1=47068&r2=47069&view=diff
==============================================================================
--- trunk/utils/png_format_check.sh (original)
+++ trunk/utils/png_format_check.sh Sun Oct 17 00:33:19 2010
@@ -40,6 +40,10 @@
 
 for i in $filelist; do
     result=`pngcheck $i`
+    if [ $? -ne 0 ]; then
+        echo "Failure executing pngcheck. Exiting."
+        exit 1
+    fi
     if echo $result|grep 'RGB+alpha'>/dev/null
     then
         rgba=$(($rgba+1))


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to