]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/b
Some Unicode compilation fixes. This Unicode stuff in file functions is
[wxWidgets.git] / wxPython / b
... / ...
CommitLineData
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
37 # save the original
38 cp setup.py setup.py.save
39
40 # fix up setup.py the way we want...
41 sed "s/BUILD_GLCANVAS = /BUILD_GLCANVAS = 0 #/" < setup.py.save > setup.py.temp
42 sed "s/GL_ONLY = /GL_ONLY = 1 #/" < setup.py.temp > setup.py
43
44 # build wxPython-gl RPM
45 $SETUP $OTHERFLAGS bdist_rpm --binary-only --doc-files README.txt
46 rm dist/wxPython-gl*.tar.gz
47
48 # Build wxPython RPM
49 cp setup.py setup.py.temp
50 sed "s/GL_ONLY = /GL_ONLY = 0 #/" < setup.py.temp > setup.py
51 $SETUP $OTHERFLAGS bdist_rpm
52
53 # put the oringal back
54 cp setup.py.save setup.py
55 rm setup.py.*
56
57 # rebuild the source dist without the munched up setup.py
58 $SETUP $OTHERFLAGS sdist
59 exit 0
60
61
62# (no command arg) --> normal build for development
63else
64 CMD="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
65fi
66
67
68echo $CMD
69$CMD
70
71
72if [ "$OTHERCMD" != "" ]; then
73 echo $OTHERCMD
74 $OTHERCMD
75fi
76