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