]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/b
3 if [ "$1" = "15" ]; then
6 elif [ "$1" = "20" ]; then
9 elif [ "$1" = "21" ]; then
15 SETUP
="python$PYVER -u setup.py"
16 FLAGS
="USE_SWIG=1 IN_CVS_TREE=1"
22 if [ "$1" = "c" ]; then
24 CMD
="$SETUP $FLAGS $OTHERFLAGS clean"
25 OTHERCMD
="rm -f wxPython/*.so"
27 # "d" --> clean extension modules only
28 elif [ "$1" = "d" ]; then
30 CMD
="rm -f wxPython/*.so"
33 elif [ "$1" = "i" ]; then
35 CMD
="$SETUP build $OTHERFLAGS install"
38 elif [ "$1" = "s" ]; then
40 CMD
="$SETUP $OTHERFLAGS sdist"
43 elif [ "$1" = "r" ]; then
46 cp setup.py setup.py.save
48 # fix up setup.py the way we want...
49 sed "s/BUILD_GLCANVAS = /BUILD_GLCANVAS = 0 #/" < setup.py.save
> setup.py.temp
50 sed "s/GL_ONLY = /GL_ONLY = 1 #/" < setup.py.temp
> setup.py
52 # build wxPython-gl RPM
53 $SETUP $OTHERFLAGS bdist_rpm
--binary-only --doc-files README.txt
54 rm dist
/wxPython
-gl*.
tar.gz
57 cp setup.py setup.py.temp
58 sed "s/GL_ONLY = /GL_ONLY = 0 #/" < setup.py.temp
> setup.py
59 $SETUP $OTHERFLAGS bdist_rpm
61 # put the oringal back
62 cp setup.py.save setup.py
65 # rebuild the source dist without the munched up setup.py
66 $SETUP $OTHERFLAGS sdist
70 # (no command arg) --> normal build for development
72 CMD
="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
80 if [ "$OTHERCMD" != "" ]; then