]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-osx
Build and distrib tweaks ported over from the 2.6 branch
[wxWidgets.git] / wxPython / distrib / all / build-osx
1 #!/bin/bash
2 #----------------------------------------------------------------------
3
4 set -o errexit
5
6 host=$1
7 pyver=$2
8 chartype=$3
9 flags=$4
10
11
12 if [ $skiposx != yes ]; then
13 # test if the target machine is online
14 if ping -q -c1 -w1 $host > /dev/null; then
15 echo " The $host machine is online, OSX build continuing..."
16 else
17 echo "The $host machine is **OFFLINE**, skipping the OSX build."
18 exit 0
19 fi
20
21 echo "Copying source files and build script..."
22 ssh root@$host "mkdir -p $OSX_BUILD && rm -rf $OSX_BUILD/* || true"
23
24 scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
25 $STAGING_DIR/wxPython-docs-$VERSION.tar.bz2 \
26 $STAGING_DIR/wxPython-demo-$VERSION.tar.bz2 \
27 distrib/all/do-build-osx \
28 root@$host:$OSX_BUILD
29
30 echo "Running build script on $host..."
31 wxdir=$OSX_BUILD/wxPython-src-$VERSION
32 cmd=./do-build-osx
33 ssh root@$host "cd $OSX_BUILD && $cmd $wxdir $OSX_BUILD $skipclean $VERSION $pyver $chartype $flags && rm $cmd"
34
35 echo "Fetching the results..."
36 scp "root@$host:$OSX_BUILD/wxPython*-osx*" $STAGING_DIR
37 ssh root@$host "rm $OSX_BUILD/wxPython*-osx*"
38
39 echo "Done!"
40 sleep 1
41 fi
42