]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.win32
1) fix border styles in wxMediaCtrl, 2) regenerate wx and mediaplayer samples bakefil...
[wxWidgets.git] / wxPython / b.win32
CommitLineData
bdac31ba
RD
1#!/bin/bash
2# ----------------------------------------------------------------------
3
4
36e91097 5FLAGS="USE_SWIG=1 SWIG=$PROJECTS/SWIG-cvs/swig.exe"
bdac31ba
RD
6
7# Use non-default python?
f60a22bd
RD
8case $1 in
9 21 | 2.1) VER=21 ;;
10 22 | 2.2) VER=22 ;;
11 23 | 2.3) VER=23 ;;
12
13 *) echo You must specify the Python version as first parameter.
14 exit -1
15esac
16
17PYTHON=$TOOLS/python$VER/python.exe
18shift
bdac31ba
RD
19
20SETUP="$PYTHON -u setup.py"
21$PYTHON -c "import sys;print '\n', sys.version, '\n'"
22
23
24
25# "c" --> clean
26if [ "$1" = "c" ]; then
27 shift
28 CMD="$SETUP $FLAGS clean $@"
29 OTHERCMD="rm wx/*.pyd"
30
31# just remove the *.pyd's
32elif [ "$1" = "d" ]; then
33 shift
34 CMD="rm wx/*.pyd"
35
36# touch all the *.i files so swig will regenerate
37elif [ "$1" = "t" ]; then
38 shift
39 CMD=
40 find . -name "*.i" | xargs -l touch
41
42# "i" --> install
43elif [ "$1" = "i" ]; then
44 shift
45 CMD="$SETUP build install"
46
47# "r" --> make installer
48elif [ "$1" = "r" ]; then
49 shift
50 CMD="$PYTHON -u distrib\make_installer.py $@"
51
52# "s" --> source dist
53elif [ "$1" = "s" ]; then
54 shift
55 CMD="$SETUP sdist"
56
57# "f" --> FINAL
58elif [ "$1" == "f" ]; then
59 shift
60 CMD="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
61
62# "h" --> HYBRID
63elif [ "$1" = "h" ]; then
64 shift
65 CMD="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
66
67# "a" --> make all installers
68elif [ "$1" = "a" ]; then
69 shift
70 CMD=
71
13a49d66
RD
72# $0 22 d
73# $0 22 h
74# $0 22 r
75# $0 22 d UNICODE=1
76# $0 22 h UNICODE=1
77# $0 22 r UNICODE=1
bdac31ba
RD
78
79 $0 23 d
80 $0 23 h
81 $0 23 r
82 $0 23 d UNICODE=1
83 $0 23 h UNICODE=1
84 $0 23 r UNICODE=1
85
86
87# "b" --> both debug and hybrid builds
88elif [ "$1" = "b" ]; then
89 shift
90 CMD="echo Finished!"
91 $0 $VER $@
92 $0 $VER h $@
93
cb56afc4 94# (no command arg) --> normal debug build for development
bdac31ba
RD
95else
96 CMD="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
97fi
98
99
100
101if [ "$CMD" != "" ]; then
102 echo $CMD
103 $CMD
104fi
105
106if [ "$OTHERCMD" != "" ]; then
107 echo $OTHERCMD
108 $OTHERCMD
109fi
110