]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-windows
Added IsOfStandardClass() as per wxMSW.
[wxWidgets.git] / wxPython / distrib / all / build-windows
CommitLineData
36e91097 1#!/bin/bash
e4bb5998 2#----------------------------------------------------------------------
36e91097
RD
3
4set -o errexit
36e91097 5
e4bb5998 6
d3c518f9 7PYVER=$1
e4bb5998 8
f5ed42f8
RD
9if [ $buildansi = yes ]; then
10 CHARTYPE=both
11else
12 CHARTYPE=unicode
13fi
14
15
e4bb5998
RD
16if [ $skipwin != yes ]; then
17 # test if the target machine is online
18 if ping -q -c1 -w1 $WIN_HOST > /dev/null; then
19 echo " The $WIN_HOST machine is online, Windows build continuing..."
20 else
21 echo "The $WIN_HOST machine is **OFFLINE**, skipping the Windows build."
22 return 0
23 fi
24
f5ed42f8 25 echo "Copying source, docs and build script..."
bf158fe6 26 scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
f5ed42f8 27 $STAGING_DIR/wxPython-docs-$VERSION.tar.bz2 \
e4bb5998
RD
28 distrib/all/do-build-windows \
29 $WIN_HOST:$WIN_BUILD
30
31 echo "Running build script on $WIN_HOST..."
32 wxdir=$WIN_BUILD/wxPython-src-$VERSION
33 cmd=./do-build-windows
f5ed42f8 34 ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxdir $WIN_BUILD $skipclean $VERSION $PYVER $CHARTYPE && rm $cmd"
e4bb5998
RD
35
36 echo "Fetching the results..."
37 scp "$WIN_HOST:$WIN_BUILD/wxPython*-win32*" $STAGING_DIR
38 ssh $WIN_HOST "rm $WIN_BUILD/wxPython*-win32*"
a0d5472b 39 ssh $WIN_HOST "rm -rf $WIN_BUILD/*"
a432a02b
RD
40
41 echo "Done!"
e4bb5998 42fi