]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-windows
slight refactor
[wxWidgets.git] / wxPython / distrib / all / build-windows
CommitLineData
36e91097 1#!/bin/bash
e4bb5998 2#----------------------------------------------------------------------
36e91097
RD
3
4set -o errexit
36e91097 5
e4bb5998 6# read the config variables from the file given on the command line
f1a9f331 7# . $1
e4bb5998 8
d3c518f9 9PYVER=$1
e4bb5998
RD
10
11if [ $skipwin != yes ]; then
12 # test if the target machine is online
13 if ping -q -c1 -w1 $WIN_HOST > /dev/null; then
14 echo " The $WIN_HOST machine is online, Windows build continuing..."
15 else
16 echo "The $WIN_HOST machine is **OFFLINE**, skipping the Windows build."
17 return 0
18 fi
19
20 echo "Copying source file and build script..."
21 scp $STAGING_DIR/wxPython-src-$VERSION.tar.gz \
22 distrib/all/do-build-windows \
23 $WIN_HOST:$WIN_BUILD
24
25 echo "Running build script on $WIN_HOST..."
26 wxdir=$WIN_BUILD/wxPython-src-$VERSION
27 cmd=./do-build-windows
28 ssh $WIN_HOST "cd $WIN_BUILD && $cmd $wxdir $WIN_BUILD $skipclean $VERSION $PYVER && rm $cmd"
29
30 echo "Fetching the results..."
31 scp "$WIN_HOST:$WIN_BUILD/wxPython*-win32*" $STAGING_DIR
32 ssh $WIN_HOST "rm $WIN_BUILD/wxPython*-win32*"
a432a02b
RD
33
34 echo "Done!"
e4bb5998 35fi