]>
Commit | Line | Data |
---|---|---|
2d09ef21 KO |
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/* $LINUX_HOST:$LINUX_BUILD | |
17 | ||
18 | echo "Untarring dist on $LINUX_HOST..." | |
19 | wxtarball=$LINUX_BUILD/wxWidgets-$BUILD_VERSION.tar.gz | |
20 | cmd="tar xzvf" | |
21 | ssh $LINUX_HOST "cd $LINUX_BUILD && $cmd $wxtarball" | |
22 | ||
23 | echo "Running build script on $LINUX_HOST..." | |
24 | wxdir=$LINUX_BUILD/wxWidgets | |
25 | cmd="./distrib/scripts/unix/maketarballs $wxdir $wxdir/deliver $BUILD_VERSION --wxgtk --wxmotif --wxx11 --wxbase --wxmgl --silent" | |
26 | ssh $LINUX_HOST "cd $wxdir && chmod +x distrib/scripts/unix/maketarballs && $cmd" | |
27 | ||
28 | echo "Fetching the results..." | |
29 | scp "$LINUX_HOST:$wxdir/deliver/*.tar.gz " $DIST_DIR | |
30 | scp "$LINUX_HOST:$wxdir/deliver/*.tar.bz2 " $DIST_DIR | |
31 | ||
32 | echo "Done!" | |
33 | fi |