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