]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/b
3 if [ "$1" = "15" ]; then
6 elif [ "$1" = "20" ]; then
12 SETUP
="python$PYVER -u setup.py"
13 FLAGS
="USE_SWIG=1 IN_CVS_TREE=1"
19 if [ "$1" = "c" ]; then
21 CMD
="$SETUP $FLAGS $OTHERFLAGS clean"
22 OTHERCMD
="rm -f wxPython/*.so"
25 elif [ "$1" = "i" ]; then
27 CMD
="$SETUP build $OTHERFLAGS install"
30 elif [ "$1" = "s" ]; then
32 CMD
="$SETUP $OTHERFLAGS sdist"
35 elif [ "$1" = "r" ]; then
38 cp setup.py setup.py.save
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
44 # build wxPython-gl RPM
45 $SETUP $OTHERFLAGS bdist_rpm
--binary-only --doc-files README.txt
46 rm dist
/wxPython
-gl*.
tar.gz
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
53 # put the oringal back
54 cp setup.py.save setup.py
57 # rebuild the source dist without the munched up setup.py
58 $SETUP $OTHERFLAGS sdist
62 # (no command arg) --> normal build for development
64 CMD
="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
72 if [ "$OTHERCMD" != "" ]; then