]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-osx
in unescape add normal characters in addition to unescaped characters :)
[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
28d1454a 12# 5. the KIND (panther or jaguar)
d391b80e 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 22if [ $# -lt 6 ]; then
28d1454a 23 echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION KIND PYVER..."
36e91097
RD
24 exit 1
25fi
26
27WXDIR=$1
28DESTDIR=$2
29SKIPCLEAN=$3
30VERSION=$4
28d1454a 31KIND=$5
d391b80e 32shift;shift;shift;shift;shift
36e91097
RD
33PYVER=$@
34
d6624155 35
28d1454a 36#export PATH=/sw/bin:/usr/local/bin:$PATH
1c39400c 37export PATH=/sw/bin:/sw/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:.:/usr/X11R6/bin
28d1454a
RD
38echo "PATH =" $PATH
39echo "which gcc = " `which gcc`
40#exit 0
d6624155
RD
41
42# untar the source
28d1454a 43echo "Unarchiving wxPython-src-$VERSION.tar.gz"
d6624155 44cd $DESTDIR
28d1454a
RD
45tar xzf wxPython-src-$VERSION.tar.gz
46rm wxPython-src-$VERSION.tar.gz
d6624155
RD
47
48
36e91097
RD
49echo "Invoking wxPythonOSX build script..."
50cd $WXDIR/wxPython
51export TARBALLDIR=$DESTDIR
52mkdir -p dist
f35732e9
RD
53if [ $KIND = panther ]; then
54 distrib/mac/wxPythonOSX/build $KIND inplace unicode
55fi
56distrib/mac/wxPythonOSX/build $KIND inplace
36e91097
RD
57
58
59echo "Copying installers to $DESTDIR..."
60cp dist/*.dmg $DESTDIR
61cd $DESTDIR
62
63
64if [ $SKIPCLEAN != yes ]; then
65 echo "Cleaning up..."
5dda6ad8 66 rm -r $WXDIR || true
28d1454a
RD
67 rm wxPython-docs-$VERSION.tar.gz
68 rm wxPython-demo-$VERSION.tar.gz
36e91097
RD
69fi
70
71echo "-=-=-=- Goodbye! -=-=-=-"