]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-windows
use PROOF_QUALITY in LOGFONT by default
[wxWidgets.git] / wxPython / distrib / all / build-windows
1 #!/bin/bash
2 #----------------------------------------------------------------------
3
4 set -o errexit
5
6 # read the config variables from the file given on the command line
7 # . $1
8
9 PYVER=$1
10
11 if [ $skipwin != yes ]; then
12 # test if the target machine is online
13 if ping -q -c1 -w1 $WIN_HOST > /dev/null; then
14 echo " The $WIN_HOST machine is online, Windows build continuing..."
15 else
16 echo "The $WIN_HOST machine is **OFFLINE**, skipping the Windows build."
17 return 0
18 fi
19
20 echo "Copying source file and build script..."
21 scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
22 distrib/all/do-build-windows \
23 $WIN_HOST:$WIN_BUILD
24
25 echo "Running build script on $WIN_HOST..."
26 wxdir=$WIN_BUILD/wxPython-src-$VERSION
27 cmd=./do-build-windows
28 ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxdir $WIN_BUILD $skipclean $VERSION $PYVER && rm $cmd"
29
30 echo "Fetching the results..."
31 scp "$WIN_HOST:$WIN_BUILD/wxPython*-win32*" $STAGING_DIR
32 ssh $WIN_HOST "rm $WIN_BUILD/wxPython*-win32*"
33
34 echo "Done!"
35 fi