]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | echo "Invoking wxPythonOSX build script..." | |
34 | cd $WXDIR/wxPython | |
35 | export TARBALLDIR=$DESTDIR | |
36 | mkdir -p dist | |
37 | distrib/mac/wxPythonOSX/build panther inplace skipclean | |
38 | ||
39 | ||
40 | echo "Copying installers to $DESTDIR..." | |
41 | cp dist/*.dmg $DESTDIR | |
42 | cd $DESTDIR | |
43 | ||
44 | ||
45 | if [ $SKIPCLEAN != yes ]; then | |
46 | echo "Cleaning up..." | |
5dda6ad8 | 47 | rm -r $WXDIR || true |
36e91097 RD |
48 | fi |
49 | ||
50 | echo "-=-=-=- Goodbye! -=-=-=-" |