]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-osx
regened with new version
[wxWidgets.git] / wxPython / distrib / all / build-osx
CommitLineData
36e91097
RD
1#!/bin/bash
2# ---------------------------------------------------------------------------
3# Build wxWidgets and wxPython on a OSX (Panther) box. This is normally
4# called from build-all but it should be able to be used standalone too...
5#
6# The command line must have the following parameters:
7#
8# 1. the path to the base of the wx source tree
9# 2. the path of where to put the resulting installers
10# 3. skipclean flag (yes|no)
11# 4. the VERSION
12# 5. the remaining args are the versions of Python to build for
13#
14# ---------------------------------------------------------------------------
15
16set -o errexit
17#set -o xtrace
18
19echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
20
21if [ $# -lt 5 ]; then
22 echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER..."
23 exit 1
24fi
25
26WXDIR=$1
27DESTDIR=$2
28SKIPCLEAN=$3
29VERSION=$4
30shift;shift;shift;shift
31PYVER=$@
32
33echo "Invoking wxPythonOSX build script..."
34cd $WXDIR/wxPython
35export TARBALLDIR=$DESTDIR
36mkdir -p dist
37distrib/mac/wxPythonOSX/build panther inplace skipclean
38
39
40echo "Copying installers to $DESTDIR..."
41cp dist/*.dmg $DESTDIR
42cd $DESTDIR
43
44
45if [ $SKIPCLEAN != yes ]; then
46 echo "Cleaning up..."
47 rm -r $WXDIR
48fi
49
50echo "-=-=-=- Goodbye! -=-=-=-"