X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfe766c352acceed1ac71921fee8cf3c2071ac03..89c8ea73d4bf1696f369b6c0273015d829fcfeb7:/wxPython/b diff --git a/wxPython/b b/wxPython/b index 530ce7aaed..edc7f64145 100755 --- a/wxPython/b +++ b/wxPython/b @@ -7,6 +7,8 @@ function getpyver { PYVER=2.0 elif [ "$1" = "21" ]; then PYVER=2.1 + elif [ "$1" = "22" ]; then + PYVER=2.2 else echo You must specify Python version as first parameter. exit @@ -18,7 +20,7 @@ shift python$PYVER -c "import sys;print '\n', sys.version, '\n'" -WXPYVER=`python -c "import setup;print setup.VERSION"` +##WXPYVER=`python$PYVER -c "import setup;print setup.VERSION"` SETUP="python$PYVER -u setup.py" FLAGS="USE_SWIG=1 IN_CVS_TREE=1" OTHERFLAGS="" @@ -39,7 +41,8 @@ elif [ "$1" = "d" ]; then # "t" --> touch *.i files elif [ "$1" = "t" ]; then shift - CMD="set CMD=touch src\*.i; touch contrib\glcanvas\*.i; touch contrib\ogl\*.i; touch contrib\stc\*.i" + #CMD="set CMD=touch src\*.i; touch contrib\glcanvas\*.i; touch contrib\ogl\*.i; touch contrib\stc\*.i" + CMD='find . -name "*.i" | xargs -l touch' # "i" --> install elif [ "$1" = "i" ]; then @@ -98,14 +101,19 @@ elif [ "$1" = "r" ]; then exit 0 +# "f" --> FINAL (no debug) +elif [ "$1" = "f" ]; then + shift + CMD="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*" + # (no command arg) --> normal build for development else - CMD="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*" + CMD="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace --debug $*" fi echo $CMD -$CMD +eval $CMD if [ "$OTHERCMD" != "" ]; then