]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-osx
reSWIGged
[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
d6624155
RD
33
34export PATH=/sw/bin:$PATH
35
36
37# untar the source
38echo "Unarchiving wxPythonSrc-$VERSION.tar.gz"
39cd $DESTDIR
40tar xzf wxPythonSrc-$VERSION.tar.gz
41rm wxPythonSrc-$VERSION.tar.gz
42
43
36e91097
RD
44echo "Invoking wxPythonOSX build script..."
45cd $WXDIR/wxPython
46export TARBALLDIR=$DESTDIR
47mkdir -p dist
48distrib/mac/wxPythonOSX/build panther inplace skipclean
49
50
51echo "Copying installers to $DESTDIR..."
52cp dist/*.dmg $DESTDIR
53cd $DESTDIR
54
55
56if [ $SKIPCLEAN != yes ]; then
57 echo "Cleaning up..."
5dda6ad8 58 rm -r $WXDIR || true
d6624155
RD
59 rm wxPythonDocs-$VERSION.tar.gz
60 rm wxPythonDemo-$VERSION.tar.gz
36e91097
RD
61fi
62
63echo "-=-=-=- Goodbye! -=-=-=-"