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