]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-windows
No animate contrib anymore
[wxWidgets.git] / wxPython / distrib / all / build-windows
1 #!/bin/bash
2 #----------------------------------------------------------------------
3
4 set -o errexit
5
6
7 PYVER=$1
8
9 if [ $buildansi = yes ]; then
10 CHARTYPE=both
11 else
12 CHARTYPE=unicode
13 fi
14
15
16 if [ $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
25 echo "Copying source, docs and build script..."
26 scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
27 $STAGING_DIR/wxPython-docs-$VERSION.tar.bz2 \
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
34 ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxdir $WIN_BUILD $skipclean $VERSION $PYVER $CHARTYPE && rm $cmd"
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*"
39
40 echo "Done!"
41 fi