X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82378a4f731fbc5ac1260828b021da3e123b3ca3..050441c8418274dd97cfe1b8755e582d41ac6c5f:/wxPython/distrib/build_packages.sh diff --git a/wxPython/distrib/build_packages.sh b/wxPython/distrib/build_packages.sh index 38b5f0eb64..24f6d226ca 100755 --- a/wxPython/distrib/build_packages.sh +++ b/wxPython/distrib/build_packages.sh @@ -1,15 +1,23 @@ #!/bin/bash -PY_VERSION=$1 -shift - unicode=no debug=no +reswig=no +all=no + +if [ "$1" = "all" ]; then + all=yes +else + PY_VERSION=$1 +fi + +shift for flag in $*; do case ${flag} in debug) debug=yes ;; unicode) unicode=yes ;; + reswig) reswig=yes ;; esac done @@ -17,6 +25,13 @@ if [ "$WXWIN" = "" ]; then export WXWIN=`pwd`/../.. fi +if [ $all = yes ]; then + $WXWIN/wxPython/distrib/build_packages.sh 23 + $WXWIN/wxPython/distrib/build_packages.sh 23 unicode + $WXWIN/wxPython/distrib/build_packages.sh 24 + $WXWIN/wxPython/distrib/build_packages.sh 24 unicode +fi + echo "wxWidgets directory is: $WXWIN" if [ "$OSTYPE" = "cygwin" ]; then @@ -55,23 +70,20 @@ if [ "$OSTYPE" = "cygwin" ]; then UNI=-uni fi ./.make hybrid$UNI - # make tools for docs creation, etc. ./.make_tools - # update the language files - cd $WXWIN/locale - make allmo - - $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/makemo.py` - cd $WXWIN/wxPython + # update the language files + $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/makemo.py` rm -rf build build.unicode rm -rf wx/*.pyd # re-generate SWIG files - $WXWIN/wxPython/b $PY_VERSION t + if [ $reswig = yes ]; then + $WXWIN/wxPython/b $PY_VERSION t + fi # build the hybrid extension # NOTE: Win Python needs Windows-style pathnames, so we @@ -83,13 +95,23 @@ if [ "$OSTYPE" = "cygwin" ]; then # make the dev package $WXWIN/wxPython/distrib/makedev + $WXWIN/wxPython/distrib/makedocs + $WXWIN/wxPython/distrib/makedemo $TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/make_installer_inno4.py` $UNICODE_FLAG elif [ "$OSTYPE" = "darwin" ]; then + OSX_VERSION=`sw_vers -productVersion` + echo "OS X Version: ${OSX_VERSION:0:4}" cd $WXWIN/wxPython + if [ ! -d dist ]; then + mkdir dist + fi # re-generate SWIG files - $WXWIN/wxPython/b $PY_VERSION t + RESWIG= + if [ $reswig = yes ]; then + RESWIG=reswig + fi PY_DOT_VER=2.3 if [ "$PY_VERSION" = "24" ]; then @@ -101,13 +123,26 @@ elif [ "$OSTYPE" = "darwin" ]; then UNICODE_OPT=unicode fi - sudo distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT + DEBUG_OPT= + if [ $debug = yes ]; then + DEBUG_OPT=debug + fi + # On Tiger, build Universal. + UNIV_OPT= + if [ ${OSX_VERSION:0:4} = "10.4" ]; then + UNIV_OPT="universal" + fi + + #sudo $WXWIN/wxPython/distrib/makedocs + $WXWIN/wxPython/distrib/makedemo + export TARBALLDIR=$WXWIN/wxPython/dist + echo "distrib/mac/wxPythonOSX/build $PY_DOT_VER inplace $UNICODE_OPT $RESWIG" + + distrib/mac/wxPythonOSX/build $PY_DOT_VER inplace $UNICODE_OPT $DEBUG_OPT $RESWIG $UNIV_OPT else echo "OSTYPE $OSTYPE not yet supported by this build script." fi -# Now make the demo and docs tarballs -cd $WXWIN/wxPython -$WXWIN/wxPython/distrib/makedocs -$WXWIN/wxPython/distrib/makedemo +# return to original dir +cd $WXWIN/wxPython/distrib