]>
Commit | Line | Data |
---|---|---|
03a2668f KO |
1 | #!/bin/bash |
2 | #---------------------------------------------------------------------- | |
3 | ||
4 | set -o errexit | |
5 | ||
6 | if [ $skipwin != yes ]; then | |
7 | # test if the target machine is online | |
8 | #if ping -q -c1 $WIN_HOST > /dev/null; then | |
9 | #echo " The $WIN_HOST machine is online, Windows build continuing..." | |
10 | #else | |
11 | #echo "The $WIN_HOST machine is **OFFLINE**, skipping the Windows build." | |
12 | #exit 0 | |
13 | #fi | |
14 | ||
15 | echo "Copying source file and build script..." | |
16 | scp -r $STAGING_DIR/* $WIN_HOST:$WIN_BUILD | |
17 | ||
18 | echo "Untarring dist on $WIN_HOST..." | |
19 | wxtarball=$WIN_BUILD/wxWidgets-$BUILD_VERSION.tar.gz | |
20 | cmd="tar xzvf" | |
21 | ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxtarball" | |
22 | ||
23 | echo "Running build script on $WIN_HOST..." | |
24 | wxdir=$WIN_BUILD/wxWidgets | |
d9114aa6 | 25 | cmd="./makesetup.sh --wxmsw --wxos2 --wxbase --wxall --no-inno" |
03a2668f KO |
26 | ssh $WIN_HOST "cd $wxdir/distrib/scripts/msw && chmod +x makesetup.sh && WXWIN=$wxdir VERSION=$BUILD_VERSION $cmd" |
27 | ||
28 | echo "Fetching the results..." | |
29 | scp "$WIN_HOST:$wxdir/deliver/*.zip " $DIST_DIR | |
30 | #ssh $WIN_HOST "rm $WIN_BUILD/wxPython*-win32*" | |
31 | ||
32 | echo "Done!" | |
33 | fi |