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