]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-osx
Restructured for new style RPMs, etc. Can build all the RPMs from a
[wxWidgets.git] / wxPython / distrib / all / build-osx
CommitLineData
36e91097
RD
1#!/bin/bash
2# ---------------------------------------------------------------------------
d391b80e 3# Build wxWidgets and wxPython on a OSX box. This is normally
36e91097
RD
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
d391b80e
RD
12# 5. the FLAVOR (panther or jaguar)
13# *. the remaining args are the versions of Python to build for
36e91097
RD
14#
15# ---------------------------------------------------------------------------
16
17set -o errexit
18#set -o xtrace
19
20echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
21
d391b80e
RD
22if [ $# -lt 6 ]; then
23 echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION FLAVOR PYVER..."
36e91097
RD
24 exit 1
25fi
26
27WXDIR=$1
28DESTDIR=$2
29SKIPCLEAN=$3
30VERSION=$4
d391b80e
RD
31FLAVOR=$5
32shift;shift;shift;shift;shift
36e91097
RD
33PYVER=$@
34
d6624155 35
ba9a8985 36export PATH=/sw/bin:/usr/local/bin:$PATH
d6624155
RD
37
38
39# untar the source
40echo "Unarchiving wxPythonSrc-$VERSION.tar.gz"
41cd $DESTDIR
42tar xzf wxPythonSrc-$VERSION.tar.gz
43rm wxPythonSrc-$VERSION.tar.gz
44
45
36e91097
RD
46echo "Invoking wxPythonOSX build script..."
47cd $WXDIR/wxPython
48export TARBALLDIR=$DESTDIR
49mkdir -p dist
d391b80e 50distrib/mac/wxPythonOSX/build $FLAVOR inplace skipclean
36e91097
RD
51
52
53echo "Copying installers to $DESTDIR..."
54cp dist/*.dmg $DESTDIR
55cd $DESTDIR
56
57
58if [ $SKIPCLEAN != yes ]; then
59 echo "Cleaning up..."
5dda6ad8 60 rm -r $WXDIR || true
d6624155
RD
61 rm wxPythonDocs-$VERSION.tar.gz
62 rm wxPythonDemo-$VERSION.tar.gz
36e91097
RD
63fi
64
65echo "-=-=-=- Goodbye! -=-=-=-"