2
# ---------------------------------------------------------------------------
3
# New and improved build script for wrapping build-wxpython.py and
4
# only needing to use super-simple one or two letter command line args.
5
# ---------------------------------------------------------------------------
10
# Why are these not being translated already like they used to be?
11
if [ "$OSTYPE" = "cygwin" ]; then
12
TOOLS=`cygpath -u $TOOLS`
13
#PROJECTS=`cygpath -u $PROJECTS`
17
if [ "$PYTHON" = "" ]; then
19
23 | 2.3) VER=23; PYVER=2.3; shift ;;
20
24 | 2.4) VER=24; PYVER=2.4; shift ;;
21
25 | 2.5) VER=25; PYVER=2.5; shift ;;
22
26 | 2.6) VER=26; PYVER=2.6; shift ;;
23
27 | 2.7) VER=27; PYVER=2.7; shift ;;
24
30 | 3.0) VER=30; PYVER=3.0; shift ;;
29
if [ "$OSTYPE" = "cygwin" ]; then
30
PYTHON=$TOOLS/python$VER/python.exe
35
echo "Using:" `which $PYTHON`
36
$PYTHON -c "import sys;print sys.version, '\n'"
39
if [ "$SWIG" = "" ]; then
40
if [ "$OSTYPE" = "cygwin" ]; then
41
SWIG=$PROJECTS\\SWIG-1.3.29\\swig.exe
43
SWIG=/opt/swig/bin/swig-1.3.29
49
echo "build commands:"
51
echo " cw clean only wx"
52
echo " cp clean only wxPython"
53
echo " ce clean only extension modules"
55
echo " cb clean both debug and release (MSW)"
57
echo " d build debug (default)"
58
echo " r build release"
59
echo " b build both debug and release (MSW)"
61
echo " t touch all *.i files"
65
ARGS="--reswig --unicode --build_dir=../bld --prefix=/opt/wx/2.9 --cairo"
70
c) ARGS="$ARGS --clean"; shift ;;
71
cw) ARGS="$ARGS --clean=wx"; shift ;;
72
cp) ARGS="$ARGS --clean=py"; shift ;;
73
ce) ARGS="$ARGS --clean=pyext"; shift ;;
75
cb) BOTH="yes"; ARGS="$ARGS --clean"; shift ;;
76
cbw) BOTH="yes"; ARGS="$ARGS --clean=wx"; shift ;;
77
cbp) BOTH="yes"; ARGS="$ARGS --clean=py"; shift ;;
78
cbe) BOTH="yes"; ARGS="$ARGS --clean=pyext"; shift ;;
80
d) DEBUG="--debug"; shift ;;
82
b) BOTH="yes"; shift ;;
84
t) find . -name "*.i" | xargs -t touch; echo "*.i files touched"; exit 0 ;;
85
help) show_help; exit 0 ;;
89
if [ "$OSTYPE" = "cygwin" -a "$BOTH" = "yes" ]; then
91
$PYTHON -u ./build-wxpython.py $ARGS --debug $@
92
$PYTHON -u ./build-wxpython.py $ARGS $@
95
$PYTHON -u ./build-wxpython.py $ARGS $DEBUG $@