X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4bb599887258fe5d1dc0bfd27433932ea7e4347..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/distrib/all/do-build-windows diff --git a/wxPython/distrib/all/do-build-windows b/wxPython/distrib/all/do-build-windows index cd40bdb2bf..58d0bc886c 100755 --- a/wxPython/distrib/all/do-build-windows +++ b/wxPython/distrib/all/do-build-windows @@ -27,8 +27,7 @@ WXDIR=$1 DESTDIR=$2 SKIPCLEAN=$3 VERSION=$4 -shift;shift;shift;shift -PYVER=$@ +PYVER=$5 # WXDIR is the cygwin path, WXWIN is the DOS path @@ -37,13 +36,17 @@ WXWIN=`cygpath -w $WXDIR` export WXWIN -# # Fix the PATH. (Why is this needed??) -# PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/robind/bin:.:$WXDIR/lib/vc_dll:$PATH -# export PATH -# echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" -# echo $PATH -# echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" -# exit 0 + +# setup the compiler +if [ $PYVER = 2.3 ]; then + echo "Using MSVC ver 6" + . msvcset local 6 + echo `which cl.exe` +else + echo "Using MSVC ver 7" + . msvcset local 7 + echo `which cl.exe` +fi # untar the source @@ -64,11 +67,13 @@ unix2dos -D $names echo "Setting up for the build..." cd $WXDIR/build/msw cp $WXDIR/wxPython/distrib/msw/.m* . +chmod +x .m* # replace some settings in setup0.h and write to setup.h cat > .my.sedexpr < $WXDIR/include/wx/msw/setup.h rm .my.sedexpr