]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-osx
ignore warning 4535 for VC8 too as it still seems to be harmless
[wxWidgets.git] / wxPython / distrib / all / build-osx
CommitLineData
36e91097 1#!/bin/bash
e4bb5998 2#----------------------------------------------------------------------
36e91097
RD
3
4set -o errexit
36e91097 5
d3c518f9 6host=$1
0f475e8a
RD
7pyver=$2
8chartype=$3
9flags=$4
10
e4bb5998
RD
11
12if [ $skiposx != yes ]; then
13 # test if the target machine is online
14 if ping -q -c1 -w1 $host > /dev/null; then
f5ed42f8 15 echo "The $host machine is online, OSX build continuing..."
e4bb5998 16 else
0f475e8a 17 echo "The $host machine is **OFFLINE**, skipping the OSX build."
e4bb5998
RD
18 exit 0
19 fi
20
f5ed42f8
RD
21 if [ $chartype == ansi -a $buildansi == no ]; then
22 echo "Skipping ansi-only build host"
23 exit 0
24 fi
25
26 if [ $chartype == both -a $buildansi == no ]; then
27 chartype=unicode
28 fi
29
e4bb5998
RD
30 echo "Copying source files and build script..."
31 ssh root@$host "mkdir -p $OSX_BUILD && rm -rf $OSX_BUILD/* || true"
32
bf158fe6
RD
33 scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
34 $STAGING_DIR/wxPython-docs-$VERSION.tar.bz2 \
35 $STAGING_DIR/wxPython-demo-$VERSION.tar.bz2 \
e4bb5998
RD
36 distrib/all/do-build-osx \
37 root@$host:$OSX_BUILD
38
39 echo "Running build script on $host..."
40 wxdir=$OSX_BUILD/wxPython-src-$VERSION
41 cmd=./do-build-osx
0f475e8a 42 ssh root@$host "cd $OSX_BUILD && $cmd $wxdir $OSX_BUILD $skipclean $VERSION $pyver $chartype $flags && rm $cmd"
e4bb5998
RD
43
44 echo "Fetching the results..."
45 scp "root@$host:$OSX_BUILD/wxPython*-osx*" $STAGING_DIR
46 ssh root@$host "rm $OSX_BUILD/wxPython*-osx*"
a432a02b
RD
47
48 echo "Done!"
49 sleep 1
36e91097
RD
50fi
51