]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | #---------------------------------------------------------------------- | |
3 | ||
4 | set -o errexit | |
5 | ||
6 | if [ $skiplinux != 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/* $MAC_HOST:$MAC_BUILD | |
17 | ||
18 | echo "Untarring dist on $MAC_HOST..." | |
19 | wxtarball=$MAC_BUILD/wxWidgets-$BUILD_VERSION.tar.gz | |
20 | cmd="tar xzvf" | |
21 | ssh $MAC_HOST "cd $MAC_BUILD && $cmd $wxtarball" | |
22 | ||
23 | echo "Running build script on $MAC_HOST..." | |
24 | wxdir=$MAC_BUILD/wxWidgets | |
25 | cmd="./distrib/scripts/mac/tardist $wxdir $wxdir/deliver $BUILD_VERSION --wxmac --wxall --silent" | |
26 | ssh $MAC_HOST "cd $wxdir && chmod +x distrib/scripts/mac/tardist && $cmd" | |
27 | ||
28 | echo "Fetching the results..." | |
29 | scp "$MAC_HOST:$wxdir/deliver/*.tar.gz " $DIST_DIR | |
30 | scp "$MAC_HOST:$wxdir/deliver/*.tar.bz2 " $DIST_DIR | |
31 | ||
32 | echo "Done!" | |
33 | fi |