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