2003-01-04 15:31:11 -05:00
|
|
|
#!/bin/sh
|
2004-05-23 10:56:36 -04:00
|
|
|
# Makes the wxWidgets RPMs
|
2003-01-04 15:31:11 -05:00
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
RPMBUILDARGS=
|
|
|
|
PLATFORM=
|
|
|
|
|
2003-01-04 15:31:11 -05:00
|
|
|
doupdatecvs()
|
|
|
|
{
|
|
|
|
cd $WXSRC
|
|
|
|
echo Updating from CVS...
|
|
|
|
cvswx update -d -P
|
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxgtk()
|
|
|
|
{
|
|
|
|
echo Making wxGTK RPMs...
|
|
|
|
RPM_ROOT=$WXDEST/wxgtk/rpm-root
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxgtk
|
|
|
|
mkdir $WXDEST/wxgtk
|
|
|
|
mkdir $WXDEST/wxgtk/release
|
|
|
|
mkdir $RPM_ROOT
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxgtk/release
|
|
|
|
echo Configuring...
|
2003-08-27 16:22:13 -04:00
|
|
|
$WXSRC/configure --with-gtk --no-recursion
|
2003-01-04 15:31:11 -05:00
|
|
|
echo Making...
|
|
|
|
make -j1 dist bzip-dist-only
|
|
|
|
|
|
|
|
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 wxGTK-$WXVER.tar.bz2 to $RPM_ROOT/SOURCES...
|
|
|
|
cp wxGTK-$WXVER.tar.bz2 $RPM_ROOT/SOURCES
|
|
|
|
echo Copying wxGTK.spec to $RPM_ROOT/SPECS...
|
|
|
|
cp $WXSRC/wxGTK.spec $RPM_ROOT/SPECS
|
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
echo Starting wxGTK RPM build, rpmbuild args=$RPMBUILDARGS...
|
2003-01-04 15:31:11 -05:00
|
|
|
cd $RPM_ROOT
|
2004-05-31 03:25:25 -04:00
|
|
|
rpmbuild -ba $RPMBUILDARGS SPECS/wxGTK.spec 2>&1 | tee wxGTK.out
|
2003-01-04 15:31:11 -05:00
|
|
|
|
2003-08-27 16:22:13 -04:00
|
|
|
echo Finished wxGTK RPM build, in $RPM_ROOT.
|
2003-01-04 15:31:11 -05:00
|
|
|
echo "SRPMS:"
|
|
|
|
ls SRPMS
|
|
|
|
echo "RPMS/i386:"
|
|
|
|
ls RPMS/i386
|
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
mkdir $WXDEST/$PLATFORM
|
2003-01-04 15:31:11 -05:00
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
cp $RPM_ROOT/SRPMS/*.rpm $WXDEST/$PLATFORM
|
|
|
|
cp $RPM_ROOT/RPMS/i386/*.rpm $WXDEST/$PLATFORM
|
|
|
|
cp $WXDEST/wxgtk/release/*.tar.gz $WXDEST/$PLATFORM
|
|
|
|
cp $WXDEST/wxgtk/release/*.tar.bz2 $WXDEST/$PLATFORM
|
|
|
|
|
|
|
|
# rm -f -r $WXDEST/wxgtk
|
2003-08-27 16:22:13 -04:00
|
|
|
|
|
|
|
echo Now try the RPMs with rpm -i.
|
|
|
|
}
|
|
|
|
|
2003-09-21 17:28:11 -04:00
|
|
|
dospinwxmgl()
|
|
|
|
{
|
|
|
|
echo Making wxMGL RPMs...
|
|
|
|
RPM_ROOT=$WXDEST/wxmgl/rpm-root
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxmgl
|
|
|
|
mkdir $WXDEST/wxmgl
|
|
|
|
mkdir $WXDEST/wxmgl/release
|
|
|
|
mkdir $RPM_ROOT
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxmgl/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --with-mgl --no-recursion
|
|
|
|
echo Making...
|
|
|
|
make -j1 dist bzip-dist-only
|
|
|
|
|
|
|
|
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 wxMGL-$WXVER.tar.bz2 to $RPM_ROOT/SOURCES...
|
|
|
|
cp wxMGL-$WXVER.tar.bz2 $RPM_ROOT/SOURCES
|
|
|
|
echo Copying wxMGL.spec to $RPM_ROOT/SPECS...
|
|
|
|
cp $WXSRC/wxMGL.spec $RPM_ROOT/SPECS
|
|
|
|
|
|
|
|
echo Starting wxMGL RPM build...
|
|
|
|
cd $RPM_ROOT
|
|
|
|
rpmbuild -ba SPECS/wxMGL.spec 2>&1 | tee wxMGL.out
|
|
|
|
|
|
|
|
echo Finished wxMGL RPM build, in $RPM_ROOT.
|
|
|
|
echo "SRPMS:"
|
|
|
|
ls SRPMS
|
|
|
|
echo "RPMS/i386:"
|
|
|
|
ls RPMS/i386
|
|
|
|
|
|
|
|
cp $RPM_ROOT/SRPMS/*.rpm $WXDEST
|
2004-05-31 03:25:25 -04:00
|
|
|
cp $RPM_ROOT/RPMS/i386/*.rpm $WXDEST
|
2003-09-21 17:28:11 -04:00
|
|
|
cp $WXDEST/wxmgl/release/*.tar.gz $WXDEST
|
|
|
|
cp $WXDEST/wxmgl/release/*.tar.bz2 $WXDEST
|
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
# rm -f -r $WXDEST/wxmgl
|
2003-09-21 17:28:11 -04:00
|
|
|
|
|
|
|
echo Now try the RPMs with rpm -i.
|
|
|
|
}
|
|
|
|
|
2003-08-27 16:22:13 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2004-05-31 03:25:25 -04:00
|
|
|
cp $RPM_ROOT/RPMS/i386/*.rpm $WXDEST
|
2003-08-27 16:22:13 -04:00
|
|
|
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
|
2004-05-31 03:25:25 -04:00
|
|
|
# rm -f -r $WXDEST/wxmotif
|
2003-08-27 16:22:13 -04:00
|
|
|
|
|
|
|
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
|
2003-01-04 15:31:11 -05:00
|
|
|
echo Now try the RPMs with rpm -i.
|
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxbase()
|
|
|
|
{
|
|
|
|
echo Making wxBase RPMs...
|
|
|
|
RPM_ROOT=$WXDEST/wxbase/rpm-root
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxbase
|
|
|
|
mkdir $WXDEST/wxbase
|
|
|
|
mkdir $WXDEST/wxbase/release
|
|
|
|
mkdir $RPM_ROOT
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxbase/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --disable-gui --no-recursion
|
|
|
|
echo Making...
|
|
|
|
make -j1 dist bzip-dist-only
|
|
|
|
|
|
|
|
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 wxBase-$WXVER.tar.bz2 to $RPM_ROOT/SOURCES...
|
|
|
|
cp wxBase-$WXVER.tar.bz2 $RPM_ROOT/SOURCES
|
|
|
|
echo Copying wxBase.spec to $RPM_ROOT/SPECS...
|
|
|
|
cp $WXSRC/wxBase.spec $RPM_ROOT/SPECS
|
|
|
|
|
2004-10-09 06:51:07 -04:00
|
|
|
echo Starting wxBase RPM build, rpmbuild args=$RPMBUILDARGS...
|
2003-01-04 15:31:11 -05:00
|
|
|
cd $RPM_ROOT
|
2004-10-09 06:51:07 -04:00
|
|
|
rpmbuild -ba $RPMBUILDARGS SPECS/wxBase.spec 2>&1 | tee wxBase.out
|
2003-01-04 15:31:11 -05:00
|
|
|
|
|
|
|
echo Finished wxBase RPM build, in $RPM_ROOT.
|
|
|
|
echo "SRPMS:"
|
|
|
|
ls SRPMS
|
|
|
|
echo "RPMS/i386:"
|
|
|
|
ls RPMS/i386
|
|
|
|
|
2004-10-09 06:51:07 -04:00
|
|
|
mkdir $WXDEST/$PLATFORM
|
|
|
|
|
|
|
|
cp $RPM_ROOT/SRPMS/*.rpm $WXDEST/$PLATFORM
|
|
|
|
cp $RPM_ROOT/RPMS/i386/*.rpm $WXDEST/$PLATFORM
|
|
|
|
cp $WXDEST/wxbase/release/*.tar.gz $WXDEST/$PLATFORM
|
|
|
|
cp $WXDEST/wxbase/release/*.tar.bz2 $WXDEST/$PLATFORM
|
2003-01-04 15:31:11 -05:00
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
# rm -f -r $WXDEST/wxbase
|
2003-01-04 15:31:11 -05:00
|
|
|
echo Now try the RPMs with rpm -i.
|
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxx11()
|
|
|
|
{
|
|
|
|
echo Making wxX11 RPMs...
|
|
|
|
RPM_ROOT=$WXDEST/wxx11/rpm-root
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxx11
|
|
|
|
mkdir $WXDEST/wxx11
|
|
|
|
mkdir $WXDEST/wxx11/release
|
|
|
|
mkdir $RPM_ROOT
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxx11/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --with-x11 --no-recursion
|
|
|
|
echo Making...
|
|
|
|
make -j1 dist bzip-dist-only
|
|
|
|
|
|
|
|
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 wxX11-$WXVER.tar.bz2 to $RPM_ROOT/SOURCES...
|
|
|
|
cp wxX11-$WXVER.tar.bz2 $RPM_ROOT/SOURCES
|
|
|
|
echo Copying wxX11.spec to $RPM_ROOT/SPECS...
|
|
|
|
cp $WXSRC/wxX11.spec $RPM_ROOT/SPECS
|
|
|
|
|
|
|
|
echo Starting wxX11 RPM build...
|
|
|
|
cd $RPM_ROOT
|
|
|
|
rpmbuild -ba SPECS/wxX11.spec 2>&1 | tee wxX11.out
|
|
|
|
|
|
|
|
echo Finished wxX11 RPM build, in $RPM_ROOT.
|
|
|
|
echo "SRPMS:"
|
|
|
|
ls SRPMS
|
|
|
|
echo "RPMS/i386:"
|
|
|
|
ls RPMS/i386
|
|
|
|
|
|
|
|
cp $RPM_ROOT/SRPMS/*.rpm $WXDEST
|
2004-05-31 03:25:25 -04:00
|
|
|
cp $RPM_ROOT/RPMS/i386/*.rpm $WXDEST
|
2003-01-04 15:31:11 -05:00
|
|
|
cp $WXDEST/wxx11/release/*.tar.gz $WXDEST
|
|
|
|
cp $WXDEST/wxx11/release/*.tar.bz2 $WXDEST
|
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
# rm -f -r $WXDEST/wxx11
|
2003-01-04 15:31:11 -05:00
|
|
|
echo Now try the RPMs with rpm -i.
|
|
|
|
}
|
|
|
|
|
|
|
|
PROGNAME=$0
|
|
|
|
WXSRC=$1
|
|
|
|
WXDEST=$2
|
|
|
|
WXVER=$3
|
|
|
|
|
|
|
|
SPINWXX11=0
|
2004-05-31 03:25:25 -04:00
|
|
|
SPINWXGTK1=0
|
|
|
|
SPINWXGTK2=0
|
|
|
|
SPINWXGTK2UNICODE=0
|
2003-08-27 16:22:13 -04:00
|
|
|
SPINWXMAC=0
|
|
|
|
SPINWXMOTIF=0
|
2003-01-04 15:31:11 -05:00
|
|
|
SPINWXBASE=0
|
2004-10-09 06:51:07 -04:00
|
|
|
SPINWXBASEUNICODE=0
|
2003-09-21 17:28:11 -04:00
|
|
|
SPINWXMGL=0
|
2003-01-04 15:31:11 -05:00
|
|
|
SPINEVERYTHING=0
|
|
|
|
UPDATECVS=0
|
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
|
|
|
echo Usage: $PROGNAME "src-dir dest-dir version-number [ options ]"
|
|
|
|
echo Options:
|
2004-05-31 03:25:25 -04:00
|
|
|
echo " --help Display this help message"
|
|
|
|
echo " --wxgtk1 Spin wxGTK1 RPMs"
|
|
|
|
echo " --wxgtk2 Spin wxGTK2 RPMs"
|
|
|
|
echo " --wxgtk2unicode Spin wxGTK2 Unicode RPMs"
|
|
|
|
echo " --wxbase Spin wxBase RPMs"
|
2004-10-09 06:51:07 -04:00
|
|
|
echo " --wxbaseunicode Spin wxBase Unicode RPMs"
|
2004-05-31 03:25:25 -04:00
|
|
|
echo " --wxx11 Spin wxX11 RPMs"
|
|
|
|
echo " --wxmotif Spin wxMotif RPMs"
|
|
|
|
echo " --wxmgl Spin wxMGL RPMs"
|
|
|
|
echo " --wxmac Make wxMac tarball"
|
|
|
|
echo " --all Spin EVERYTHING"
|
|
|
|
echo " --updatecvs Update from CVS"
|
2003-01-04 15:31:11 -05:00
|
|
|
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2003-06-06 06:46:59 -04:00
|
|
|
init=""
|
|
|
|
if [ "$1" = "" ]
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$2" = "" ]
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$3" = "" ]
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2003-01-04 15:31:11 -05:00
|
|
|
# Process command line options.
|
|
|
|
shift 3
|
|
|
|
for i in "$@"; do
|
|
|
|
case "$i" in
|
|
|
|
--wxx11) SPINWXX11=1 ;;
|
2004-05-31 03:25:25 -04:00
|
|
|
--wxgtk1) SPINWXGTK1=1 ;;
|
|
|
|
--wxgtk2) SPINWXGTK2=1 ;;
|
|
|
|
--wxgtk2unicode) SPINWXGTK2UNICODE=1 ;;
|
2003-08-27 16:22:13 -04:00
|
|
|
--wxmotif) SPINWXMOTIF=1 ;;
|
2003-09-21 17:28:11 -04:00
|
|
|
--wxmgl) SPINWXMGL=1 ;;
|
2003-08-27 16:22:13 -04:00
|
|
|
--wxmac) SPINWXMAC=1 ;;
|
2003-01-04 15:31:11 -05:00
|
|
|
--wxbase) SPINWXBASE=1 ;;
|
2004-10-09 06:51:07 -04:00
|
|
|
--wxbaseunicode) SPINWXBASEUNICODE=1 ;;
|
2003-01-04 15:31:11 -05:00
|
|
|
--all) SPINEVERYTHING=1 ;;
|
|
|
|
--updatecvs) UPDATECVS=1 ;;
|
|
|
|
*)
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2004-05-23 10:56:36 -04:00
|
|
|
echo About to make wxWidgets RPMs:
|
2003-01-04 15:31:11 -05:00
|
|
|
echo From $WXSRC
|
|
|
|
echo To $WXDEST
|
|
|
|
echo Version $WXVER
|
|
|
|
echo CTRL-C if this is not correct.
|
|
|
|
read dummy
|
|
|
|
|
|
|
|
if [ "$UPDATECVS" = "1" ]; then
|
|
|
|
doupdatecvs
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxx11
|
|
|
|
fi
|
|
|
|
|
2004-05-31 03:25:25 -04:00
|
|
|
if [ "$SPINWXGTK1" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
RPMBUILDARGS=
|
|
|
|
PLATFORM=gtk1
|
|
|
|
dospinwxgtk
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXGTK2" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
RPMBUILDARGS="--with gtk2"
|
|
|
|
PLATFORM=gtk2
|
|
|
|
dospinwxgtk
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXGTK2UNICODE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
RPMBUILDARGS="--with gtk2 --with unicode"
|
|
|
|
PLATFORM=gtk2unicode
|
2003-01-04 15:31:11 -05:00
|
|
|
dospinwxgtk
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
2004-10-09 06:51:07 -04:00
|
|
|
PLATFORM=base
|
|
|
|
dospinwxbase
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXBASEUNICODE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
RPMBUILDARGS="--with unicode"
|
|
|
|
PLATFORM=baseunicode
|
2003-01-04 15:31:11 -05:00
|
|
|
dospinwxbase
|
|
|
|
fi
|
|
|
|
|
2003-08-27 16:22:13 -04:00
|
|
|
if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxmotif
|
|
|
|
fi
|
|
|
|
|
2003-09-21 17:28:11 -04:00
|
|
|
if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxmgl
|
|
|
|
fi
|
|
|
|
|
2004-02-21 20:25:51 -05:00
|
|
|
if [ "$SPINWXMAC" = "1" ]; then
|
2003-08-27 16:22:13 -04:00
|
|
|
dospinwxmac
|
|
|
|
fi
|
|
|
|
|