From: Robin Dunn Date: Tue, 15 Jun 2004 03:27:08 +0000 (+0000) Subject: Check exit codes properly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a3b4583a9d64feae07d3eefbc720a425e099880c?ds=inline Check exit codes properly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/distrib/msw/.make b/wxPython/distrib/msw/.make index 8a0343ac7d..6d68c46199 100644 --- a/wxPython/distrib/msw/.make +++ b/wxPython/distrib/msw/.make @@ -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 -