]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b
made wxLocale::GetSystemLanguage and wxLocale::AddLanguage static;
[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
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
63 else
64 CMD="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
65 fi
66
67
68 echo $CMD
69 $CMD
70
71
72 if [ "$OTHERCMD" != "" ]; then
73 echo $OTHERCMD
74 $OTHERCMD
75 fi
76