+dospinwxmotif()
+{
+ echo Making wxMotif RPMs...
+ RPM_ROOT=$WXDEST/wxmotif/rpm-root
+
+ if [ ! -d $WXDEST ]; then
+ mkdir $WXDEST
+ fi
+
+ rm -f -r $WXDEST/wxmotif
+ mkdir $WXDEST/wxmotif
+ mkdir $WXDEST/wxmotif/release
+ mkdir $RPM_ROOT
+
+ cd $WXSRC
+ cd locale
+ make allmo
+ cd $WXDEST/wxmotif/release
+ echo Configuring...
+ $WXSRC/configure --with-motif --no-recursion
+ echo Making...
+ make -j1 dist bzip-dist-only
+
+ if [ "$NORPMS" != "1" ]
+ then
+
+ echo Setting up RPM build dir $RPM_ROOT...
+ rm -f -r $RPM_ROOT
+ mkdir $RPM_ROOT
+ mkdir $RPM_ROOT/BUILD
+ mkdir $RPM_ROOT/RPMS
+ mkdir $RPM_ROOT/RPMS/i386
+ mkdir $RPM_ROOT/RPMS/i686
+ mkdir $RPM_ROOT/RPMS/noarch
+ mkdir $RPM_ROOT/SOURCES
+ mkdir $RPM_ROOT/SPECS
+ mkdir $RPM_ROOT/SRPMS
+
+ echo %_topdir $RPM_ROOT > ~/.rpmmacros
+
+ echo Copying wxMOTIF-$WXVER.tar.bz2 to $RPM_ROOT/SOURCES...
+ cp wxMOTIF-$WXVER.tar.bz2 $RPM_ROOT/SOURCES
+ echo Copying wxMotif.spec to $RPM_ROOT/SPECS...
+ cp $WXSRC/wxMotif.spec $RPM_ROOT/SPECS
+
+ echo Starting wxMotif RPM build...
+ cd $RPM_ROOT
+ rpmbuild -ba SPECS/wxMotif.spec 2>&1 | tee wxGTK.out
+
+ echo Finished wxMotif RPM build, in $RPM_ROOT.
+ echo "SRPMS:"
+ ls SRPMS
+ echo "RPMS/i386:"
+ ls RPMS/i386
+
+ cp $RPM_ROOT/SRPMS/*.rpm $WXDEST
+ cp $RPM_ROOT/RPMS/i386/*.rpm $WXDEST
+
+ fi
+
+ cp $WXDEST/wxmotif/release/*.tar.gz $WXDEST
+ cp $WXDEST/wxmotif/release/*.tar.bz2 $WXDEST
+
+ echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
+ cd $WXDEST
+ mkdir wxMotif.tmp
+ cd wxMotif.tmp
+ rm -f -r *
+ tar xfz ../wxMOTIF-$WXVER.tar.gz
+ mv wxMOTIF-$WXVER wxMotif-$WXVER
+ rm -f ../wxMOTIF-$WXVER.tar.gz
+ rm -f ../wxMOTIF-$WXVER.tar.bz2
+ tar cf ../wxMotif-$WXVER.tar *
+ gzip -c ../wxMotif-$WXVER.tar > ../wxMotif-$WXVER.tar.gz
+ bzip2 -f9 ../wxMotif-$WXVER.tar
+ cd ..
+ rm -f -r wxMotif.tmp
+# rm -f -r $WXDEST/wxmotif
+
+ echo Now try the RPMs with rpm -i.
+}
+
+dospinwxmac()
+{
+ echo Making wxMac tarballs...
+ echo Note that this must be done on a Mac.
+ if [ ! -d $WXDEST ]; then
+ mkdir $WXDEST
+ fi
+
+ rm -f -r $WXDEST/wxmac
+ mkdir $WXDEST/wxmac
+ mkdir $WXDEST/wxmac/release
+
+ cd $WXSRC
+ cd locale
+ make allmo
+ cd $WXDEST/wxmac/release
+ echo Configuring...
+ $WXSRC/configure --with-mac --no-recursion
+ echo Making...
+ make -j1 dist bzip-dist-only
+
+ cp $WXDEST/wxmac/release/*.tar.gz $WXDEST
+ cp $WXDEST/wxmac/release/*.tar.bz2 $WXDEST
+
+ echo Rearchiving wxMac tarballs to change wxMAC to wxMAC...
+ cd $WXDEST
+ mkdir wxMac.tmp
+ cd wxMac.tmp
+ rm -f -r *
+ tar xfz ../wxMac-$WXVER.tar.gz
+ mv wxMAC-$WXVER wxMac-$WXVER
+ rm -f ../wxMAC-$WXVER.tar.gz
+ rm -f ../wxMAC-$WXVER.tar.bz2
+ tar cf ../wxMac-$WXVER.tar *
+ gzip -c ../wxMac-$WXVER.tar > ../wxMac-$WXVER.tar.gz
+ bzip2 -f9 ../wxMac-$WXVER.tar
+ cd ..
+ rm -f -r wxMac.tmp
+
+ rm -f -r $WXDEST/wxmac
+ echo Now try the RPMs with rpm -i.
+}
+