X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4bb599887258fe5d1dc0bfd27433932ea7e4347..67be49eec662508cef58c30a2214044d1249a579:/wxPython/distrib/all/do-build-rpm diff --git a/wxPython/distrib/all/do-build-rpm b/wxPython/distrib/all/do-build-rpm index 910f09a6ca..e36b8d03b2 100755 --- a/wxPython/distrib/all/do-build-rpm +++ b/wxPython/distrib/all/do-build-rpm @@ -18,16 +18,16 @@ set -o errexit echo "-=-=-=- Hello from $HOSTNAME -=-=-=-" -if [ $# -lt 4 ]; then - echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER..." +if [ $# -lt 5 ]; then + echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER CHARTYPE" exit 1 fi RELEASE=$1 SKIPCLEAN=$2 VERSION=$3 -shift;shift;shift -PYVER=$@ +PYVER=$4 +CHARTYPE=$5 rpmtop=_rpm_top @@ -69,15 +69,22 @@ for dir in SPECS BUILD RPMS SOURCES SRPMS tmp; do fi done -cp wxPython-src-$VERSION.tar.gz $rpmtop/SOURCES +cp wxPython-src-$VERSION.tar.bz2 $rpmtop/SOURCES -echo "******************** PYVER = " $PYVER -for ver in $PYVER; do - echo "Building the RPMs for Python $ver..." - DoRPMBuild $ver gtk 0 - DoRPMBuild $ver gtk2 1 - DoRPMBuild $ver gtk2 0 -done +echo "************************************************" +echo "Building the RPMs for Python $PYVER, $CHARTYPE" + +## for now let's just do the gtk2 builds +##if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then +## DoRPMBuild $ver gtk 0 +##fi + +if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then + DoRPMBuild $PYVER gtk2 0 +fi +if [ $CHARTYPE = both -o $CHARTYPE = unicode ]; then + DoRPMBuild $PYVER gtk2 1 +fi echo "*** Moving RPMs to ." @@ -90,7 +97,7 @@ if [ $SKIPCLEAN != yes ]; then rm -rf $rpmtop echo "Cleaning up..." - rm *.spec *.tar.gz + rm *.spec *.tar.bz2 fi echo "-=-=-=- Goodbye! -=-=-=-"