]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b
Merged wxPython 2.2.2 over to the main branch
[wxWidgets.git] / wxPython / b
1 #!/bin/sh
2
3 if [ "$1" = "15" ]; then
4 PYVER=1.5
5 shift
6 elif [ "$1" = "20" ]; then
7 PYVER=2.0
8 shift
9 fi
10
11
12 SETUP="python$PYVER -u setup.py"
13 FLAGS="USE_SWIG=1 IN_CVS_TREE=1"
14 OTHERFLAGS=""
15
16
17
18 # "c" --> clean
19 if [ "$1" = "c" ]; then
20 shift
21 CMD="$SETUP $FLAGS $OTHERFLAGS clean"
22 OTHERCMD="rm -f wxPython/*.so"
23
24 # "i" --> install
25 elif [ "$1" = "i" ]; then
26 shift
27 CMD="$SETUP build $OTHERFLAGS install"
28
29 # "s" --> source dist
30 elif [ "$1" = "s" ]; then
31 shift
32 CMD="$SETUP $OTHERFLAGS sdist"
33
34 # "r" --> rpm dist
35 elif [ "$1" = "r" ]; then
36 shift
37 CMD="$SETUP $OTHERFLAGS bdist_rpm"
38
39 # (no command arg) --> normal build for development
40 else
41 CMD="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
42 fi
43
44
45 echo $CMD
46 $CMD
47
48
49 if [ "$OTHERCMD" != "" ]; then
50 echo $OTHERCMD
51 $OTHERCMD
52 fi
53