]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/distrib/all/do-build-osx
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / distrib / all / do-build-osx
... / ...
CommitLineData
1#!/bin/bash
2# ---------------------------------------------------------------------------
3# Build wxWidgets and wxPython on a OSX 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 KIND (panther or jaguar)
13# *. the remaining args are the versions of Python to build for
14#
15# ---------------------------------------------------------------------------
16
17set -o errexit
18#set -o xtrace
19
20echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
21
22if [ $# -lt 6 ]; then
23 echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION KIND PYVER"
24 exit 1
25fi
26
27WXDIR=$1
28DESTDIR=$2
29SKIPCLEAN=$3
30VERSION=$4
31KIND=$5
32PYVER=$6
33
34
35#export PATH=/sw/bin:/usr/local/bin:$PATH
36export PATH=/sw/bin:/sw/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:.:/usr/X11R6/bin
37echo "PATH =" $PATH
38echo "which gcc = " `which gcc`
39#exit 0
40
41# untar the source
42echo "Unarchiving wxPython-src-$VERSION.tar.gz"
43cd $DESTDIR
44tar xzf wxPython-src-$VERSION.tar.gz
45rm wxPython-src-$VERSION.tar.gz
46
47
48echo "Invoking wxPythonOSX build script..."
49cd $WXDIR/wxPython
50export TARBALLDIR=$DESTDIR
51mkdir -p dist
52if [ $KIND = panther ]; then
53 distrib/mac/wxPythonOSX/build $PYVER $KIND inplace unicode
54fi
55distrib/mac/wxPythonOSX/build $PYVER $KIND inplace
56
57
58echo "Copying installers to $DESTDIR..."
59cp dist/*.dmg $DESTDIR
60cd $DESTDIR
61
62
63if [ $SKIPCLEAN != yes ]; then
64 echo "Cleaning up..."
65 rm -r $WXDIR || true
66 rm wxPython-docs-$VERSION.tar.gz
67 rm wxPython-demo-$VERSION.tar.gz
68fi
69
70echo "-=-=-=- Goodbye! -=-=-=-"