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
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 ."
rm -rf $rpmtop
echo "Cleaning up..."
- rm *.spec *.tar.gz
+ rm *.spec *.tar.bz2
fi
echo "-=-=-=- Goodbye! -=-=-=-"