]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-osx
reSWIGged
[wxWidgets.git] / wxPython / distrib / all / build-osx
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
16 set -o errexit
17 #set -o xtrace
18
19 echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
20
21 if [ $# -lt 5 ]; then
22 echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER..."
23 exit 1
24 fi
25
26 WXDIR=$1
27 DESTDIR=$2
28 SKIPCLEAN=$3
29 VERSION=$4
30 shift;shift;shift;shift
31 PYVER=$@
32
33
34 export PATH=/sw/bin:$PATH
35
36
37 # untar the source
38 echo "Unarchiving wxPythonSrc-$VERSION.tar.gz"
39 cd $DESTDIR
40 tar xzf wxPythonSrc-$VERSION.tar.gz
41 rm wxPythonSrc-$VERSION.tar.gz
42
43
44 echo "Invoking wxPythonOSX build script..."
45 cd $WXDIR/wxPython
46 export TARBALLDIR=$DESTDIR
47 mkdir -p dist
48 distrib/mac/wxPythonOSX/build panther inplace skipclean
49
50
51 echo "Copying installers to $DESTDIR..."
52 cp dist/*.dmg $DESTDIR
53 cd $DESTDIR
54
55
56 if [ $SKIPCLEAN != yes ]; then
57 echo "Cleaning up..."
58 rm -r $WXDIR || true
59 rm wxPythonDocs-$VERSION.tar.gz
60 rm wxPythonDemo-$VERSION.tar.gz
61 fi
62
63 echo "-=-=-=- Goodbye! -=-=-=-"