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