]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b.win32
ReloadDemoPanel is no longer needed since every sample will have a panel
[wxWidgets.git] / wxPython / b.win32
1 #!/bin/bash
2 # ----------------------------------------------------------------------
3
4
5 FLAGS="USE_SWIG=1 SWIG=$PROJECTS/SWIG-cvs/swig.exe"
6
7 # Use non-default python?
8 case $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
15 esac
16
17 PYTHON=$TOOLS/python$VER/python.exe
18 shift
19
20 SETUP="$PYTHON -u setup.py"
21 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
22
23
24
25 # "c" --> clean
26 if [ "$1" = "c" ]; then
27 shift
28 CMD="$SETUP $FLAGS clean $@"
29 OTHERCMD="rm wx/*.pyd"
30
31 # just remove the *.pyd's
32 elif [ "$1" = "d" ]; then
33 shift
34 CMD="rm wx/*.pyd"
35
36 # touch all the *.i files so swig will regenerate
37 elif [ "$1" = "t" ]; then
38 shift
39 CMD=
40 find . -name "*.i" | xargs -l touch
41
42 # "i" --> install
43 elif [ "$1" = "i" ]; then
44 shift
45 CMD="$SETUP build install"
46
47 # "r" --> make installer
48 elif [ "$1" = "r" ]; then
49 shift
50 CMD="$PYTHON -u distrib\make_installer.py $@"
51
52 # "s" --> source dist
53 elif [ "$1" = "s" ]; then
54 shift
55 CMD="$SETUP sdist"
56
57 # "f" --> FINAL
58 elif [ "$1" == "f" ]; then
59 shift
60 CMD="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
61
62 # "h" --> HYBRID
63 elif [ "$1" = "h" ]; then
64 shift
65 CMD="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
66
67 # "a" --> make all installers
68 elif [ "$1" = "a" ]; then
69 shift
70 CMD=
71
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
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
88 elif [ "$1" = "b" ]; then
89 shift
90 CMD="echo Finished!"
91 $0 $VER $@
92 $0 $VER h $@
93
94 # (no command arg) --> normal build for development
95 else
96 CMD="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
97 fi
98
99
100
101 if [ "$CMD" != "" ]; then
102 echo $CMD
103 $CMD
104 fi
105
106 if [ "$OTHERCMD" != "" ]; then
107 echo $OTHERCMD
108 $OTHERCMD
109 fi
110