X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bf6b425b4c4204dac39440d75fe5d205d1fd9d0..1b701a43b85633a2b93f9ec814a0af2cd76c7ab0:/wxPython/distrib/all/do-build-rpm diff --git a/wxPython/distrib/all/do-build-rpm b/wxPython/distrib/all/do-build-rpm index 6a0bf692de..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,18 +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..." +echo "************************************************" +echo "Building the RPMs for Python $PYVER, $CHARTYPE" - ## for now let's just do the gtk2 builds - ##DoRPMBuild $ver gtk 0 +## for now let's just do the gtk2 builds +##if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then +## DoRPMBuild $ver gtk 0 +##fi - DoRPMBuild $ver gtk2 0 - DoRPMBuild $ver gtk2 1 -done +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 ." @@ -93,7 +97,7 @@ if [ $SKIPCLEAN != yes ]; then rm -rf $rpmtop echo "Cleaning up..." - rm *.spec *.tar.gz + rm *.spec *.tar.bz2 fi echo "-=-=-=- Goodbye! -=-=-=-"