echo ------------------
-echo cd $WXWIN/build/msw
+WXWIN=`cygpath -m $WXWIN`
cd $WXWIN/build/msw
+
+echo mkdir -p $WXWIN/lib/vc_dll/$WXLIBDIR/wx
+mkdir -p $WXWIN/lib/vc_dll/$WXLIBDIR/wx
+echo nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
nmake -f .makesetup.mk $WXWIN/lib/vc_dll/$WXLIBDIR/wx/setup.h
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 -
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 -
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 -
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 -
echo -----------------
echo -- SUCCESS! --
echo -----------------
-# copy DLLs to a dir on the PATH
-# copy /U $WXWIN/lib/vc_dll/*.dll $WXWIN/BIN
-# copy /U $WXWIN/lib/vc_dll/*.pdb $WXWIN/BIN
exit 0