]>
Commit | Line | Data |
---|---|---|
36e91097 | 1 | #!/bin/bash |
e4bb5998 | 2 | #---------------------------------------------------------------------- |
36e91097 RD |
3 | |
4 | set -o errexit | |
36e91097 | 5 | |
e4bb5998 | 6 | # read the config variables from the file given on the command line |
f1a9f331 | 7 | # . $1 |
e4bb5998 RD |
8 | |
9 | ||
d3c518f9 KO |
10 | host=$1 |
11 | flavor=$2 | |
12 | pyver=$3 | |
e4bb5998 RD |
13 | |
14 | if [ $skiposx != yes ]; then | |
15 | # test if the target machine is online | |
16 | if ping -q -c1 -w1 $host > /dev/null; then | |
17 | echo " The $host machine is online, OSX-$flavor build continuing..." | |
18 | else | |
19 | echo "The $host machine is **OFFLINE**, skipping the OSX-$flavor build." | |
20 | exit 0 | |
21 | fi | |
22 | ||
23 | echo "Copying source files and build script..." | |
24 | ssh root@$host "mkdir -p $OSX_BUILD && rm -rf $OSX_BUILD/* || true" | |
25 | ||
26 | scp $STAGING_DIR/wxPython-src-$VERSION.tar.gz \ | |
27 | $STAGING_DIR/wxPython-docs-$VERSION.tar.gz \ | |
28 | $STAGING_DIR/wxPython-demo-$VERSION.tar.gz \ | |
29 | distrib/all/do-build-osx \ | |
30 | root@$host:$OSX_BUILD | |
31 | ||
32 | echo "Running build script on $host..." | |
33 | wxdir=$OSX_BUILD/wxPython-src-$VERSION | |
34 | cmd=./do-build-osx | |
2bf6b425 | 35 | ssh root@$host "cd $OSX_BUILD && $cmd $wxdir $OSX_BUILD $skipclean $VERSION $flavor $pyver && rm $cmd" |
e4bb5998 RD |
36 | |
37 | echo "Fetching the results..." | |
38 | scp "root@$host:$OSX_BUILD/wxPython*-osx*" $STAGING_DIR | |
39 | ssh root@$host "rm $OSX_BUILD/wxPython*-osx*" | |
a432a02b RD |
40 | |
41 | echo "Done!" | |
42 | sleep 1 | |
36e91097 RD |
43 | fi |
44 |