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