]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distrib/msw/.make
Check exit codes properly
[wxWidgets.git] / wxPython / distrib / msw / .make
index 8a0343ac7d0c5e20ac475a259040d4b1337cc346..6d68c46199afcb8122a2d130b6dde04a51575c6c 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#! /bin/bash
 
 
 function error {
@@ -88,14 +88,14 @@ echo ------------------
 echo cd $WXWIN/build/msw
 cd $WXWIN/build/msw
 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
-if [ ! $? ]; then error; fi
+if [ ! $? = 0 ]; then error; fi
 
 
 echo ------------------
 echo cd ../../contrib/build/gizmos
 cd ../../contrib/build/gizmos
 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
-if [ ! $? ]; then error; fi
+if [ ! $? = 0 ]; then error; fi
 cd -
 
 
@@ -103,7 +103,7 @@ echo ------------------
 echo cd ../../contrib/build/xrc
 cd ../../contrib/build/xrc
 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
-if [ ! $? ]; then error; fi
+if [ ! $? = 0 ]; then error; fi
 cd -
 
 
@@ -111,7 +111,7 @@ echo ------------------
 echo cd ../../contrib/build/stc
 cd ../../contrib/build/stc
 $WXWIN/build/msw/.mymake $BUILD_TYPE $@
-if [ ! $? ]; then error; fi
+if [ ! $? = 0 ]; then error; fi
 cd -
 
 
@@ -119,7 +119,7 @@ echo ------------------
 echo cd ../../contrib/build/ogl
 cd ../../contrib/build/ogl
 $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@
-if [ ! $? ]; then error; fi
+if [ ! $? = 0 ]; then error; fi
 cd -