]>
Commit | Line | Data |
---|---|---|
36e91097 | 1 | #!/bin/bash |
e4bb5998 | 2 | #---------------------------------------------------------------------- |
36e91097 RD |
3 | |
4 | set -o errexit | |
36e91097 | 5 | |
e4bb5998 | 6 | |
d3c518f9 | 7 | PYVER=$1 |
e4bb5998 RD |
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..." | |
bf158fe6 | 19 | scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \ |
e4bb5998 RD |
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*" | |
a432a02b RD |
31 | |
32 | echo "Done!" | |
e4bb5998 | 33 | fi |