r19101 - gnucash/trunk/packaging/win32 - Improve test_for_mingw

Geert Janssens gjanssens at code.gnucash.org
Tue May 4 18:40:19 EDT 2010


Author: gjanssens
Date: 2010-05-04 18:40:19 -0400 (Tue, 04 May 2010)
New Revision: 19101
Trac: http://svn.gnucash.org/trac/changeset/19101

Modified:
   gnucash/trunk/packaging/win32/install.sh
Log:
Improve test_for_mingw
- change test so that both tested programs must work, not only the exit code of the last one
- make it cross-compile compatible

Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh	2010-05-04 16:44:55 UTC (rev 19100)
+++ gnucash/trunk/packaging/win32/install.sh	2010-05-04 22:40:19 UTC (rev 19101)
@@ -142,11 +142,10 @@
 }
 
 function test_for_mingw() {
-    ${CC} --version
-    ${LD} --help
-    if [ "$CROSS_COMPILE" != "yes" ]; then
-        g++ --version
-        mingw32-make --help
+    if [ "$CROSS_COMPILE" == "yes" ]; then
+        ${CC} --version && ${LD} --help
+    else
+        g++ --version && mingw32-make --help
     fi
 }
 



More information about the gnucash-changes mailing list