3 if [ "$1" = "15" ]; then
6 elif [ "$1" = "20" ]; then
9 elif [ "$1" = "21" ]; then
13 echo You must specify Python version as first parameter.
18 SETUP
="python$PYVER -u setup.py"
19 FLAGS
="USE_SWIG=1 IN_CVS_TREE=1"
25 if [ "$1" = "c" ]; then
27 CMD
="$SETUP $FLAGS $OTHERFLAGS clean"
28 OTHERCMD
="rm -f wxPython/*.so"
30 # "d" --> clean extension modules only
31 elif [ "$1" = "d" ]; then
33 CMD
="rm -f wxPython/*.so"
35 # "t" --> touch *.i files
36 elif [ "$1" = "t" ]; then
38 CMD
="set CMD=touch src\*.i; touch contrib\glcanvas\*.i; touch contrib\ogl\*.i; touch contrib\stc\*.i"
41 elif [ "$1" = "i" ]; then
43 CMD
="$SETUP build $OTHERFLAGS install"
46 elif [ "$1" = "s" ]; then
48 CMD
="$SETUP $OTHERFLAGS sdist"
51 elif [ "$1" = "r" ]; then
54 cp setup.py setup.py.save
56 # fix up setup.py the way we want...
57 sed "s/BUILD_GLCANVAS = /BUILD_GLCANVAS = 0 #/" < setup.py.save
> setup.py.temp
58 sed "s/GL_ONLY = /GL_ONLY = 1 #/" < setup.py.temp
> setup.py
60 # build wxPython-gl RPM
61 $SETUP $OTHERFLAGS bdist_rpm
--binary-only --doc-files README.txt
62 rm dist
/wxPython
-gl*.
tar.gz
65 cp setup.py setup.py.temp
66 sed "s/GL_ONLY = /GL_ONLY = 0 #/" < setup.py.temp
> setup.py
67 $SETUP $OTHERFLAGS bdist_rpm
69 # put the oringal back
70 cp setup.py.save setup.py
73 # rebuild the source dist without the munched up setup.py
74 $SETUP $OTHERFLAGS sdist
78 # (no command arg) --> normal build for development
80 CMD
="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
88 if [ "$OTHERCMD" != "" ]; then