2003-08-24 15:59:29 -04:00
|
|
|
#!/bin/sh
|
2004-05-23 10:56:36 -04:00
|
|
|
# Makes the wxWidgets tarballs with 'make dist'
|
2003-08-24 15:59:29 -04:00
|
|
|
|
|
|
|
doupdatecvs()
|
|
|
|
{
|
|
|
|
cd $WXSRC
|
|
|
|
echo Updating from CVS...
|
|
|
|
cvswx update -d -P
|
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxgtk()
|
|
|
|
{
|
|
|
|
echo Making wxGTK tarballs...
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxgtk
|
|
|
|
mkdir $WXDEST/wxgtk
|
|
|
|
mkdir $WXDEST/wxgtk/release
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxgtk/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --no-recursion
|
|
|
|
echo Making...
|
2004-10-10 18:43:06 -04:00
|
|
|
make -j1 dist bzip-dist-only
|
2003-08-24 15:59:29 -04:00
|
|
|
mv $WXDEST/wxgtk/release/*.gz $WXDEST/wxgtk/release/*.bz2 $WXDEST
|
|
|
|
}
|
|
|
|
|
2004-10-10 18:43:06 -04:00
|
|
|
dospinwxmgl()
|
|
|
|
{
|
|
|
|
echo Making wxMGL tarballs...
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxmgl
|
|
|
|
mkdir $WXDEST/wxmgl
|
|
|
|
mkdir $WXDEST/wxmgl/release
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxmgl/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --no-recursion --with-mgl
|
|
|
|
echo Making...
|
|
|
|
make -j1 dist bzip-dist-only
|
|
|
|
mv $WXDEST/wxmgl/release/*.gz $WXDEST/wxmgl/release/*.bz2 $WXDEST
|
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxbase()
|
|
|
|
{
|
|
|
|
echo Making wxBase tarballs...
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxbase
|
|
|
|
mkdir $WXDEST/wxbase
|
|
|
|
mkdir $WXDEST/wxbase/release
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxbase/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --no-recursion --disable-gui
|
|
|
|
echo Making...
|
|
|
|
make -j1 dist bzip-dist-only
|
|
|
|
mv $WXDEST/wxbase/release/*.gz $WXDEST/wxbase/release/*.bz2 $WXDEST
|
|
|
|
}
|
|
|
|
|
2003-08-24 15:59:29 -04:00
|
|
|
dospinwxx11()
|
|
|
|
{
|
|
|
|
echo Making wxX11 tarballs...
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxx11
|
|
|
|
mkdir $WXDEST/wxx11
|
|
|
|
mkdir $WXDEST/wxx11/release
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxx11/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --with-x11 --no-recursion
|
|
|
|
echo Making...
|
2004-10-10 18:43:06 -04:00
|
|
|
make -j1 dist bzip-dist-only
|
2003-08-24 15:59:29 -04:00
|
|
|
|
|
|
|
cp $WXDEST/wxx11/release/*.tar.gz $WXDEST
|
|
|
|
cp $WXDEST/wxx11/release/*.tar.bz2 $WXDEST
|
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxmotif()
|
|
|
|
{
|
|
|
|
echo Making wxMotif tarballs...
|
|
|
|
|
|
|
|
if [ ! -d $WXDEST ]; then
|
|
|
|
mkdir $WXDEST
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f -r $WXDEST/wxmotif
|
|
|
|
mkdir $WXDEST/wxmotif
|
|
|
|
mkdir $WXDEST/wxmotif/release
|
|
|
|
|
|
|
|
cd $WXSRC
|
|
|
|
cd locale
|
|
|
|
make allmo
|
|
|
|
cd $WXDEST/wxmotif/release
|
|
|
|
echo Configuring...
|
|
|
|
$WXSRC/configure --with-motif --no-recursion
|
|
|
|
echo Making...
|
2004-10-10 18:43:06 -04:00
|
|
|
make -j1 dist bzip-dist-only
|
2003-08-24 15:59:29 -04:00
|
|
|
|
|
|
|
cp $WXDEST/wxmotif/release/*.tar.gz $WXDEST
|
|
|
|
cp $WXDEST/wxmotif/release/*.tar.bz2 $WXDEST
|
2003-08-27 16:22:13 -04:00
|
|
|
|
|
|
|
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-10-10 18:43:06 -04:00
|
|
|
# rm -f -r $WXDEST/wxmotif
|
2003-08-24 15:59:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
dospinwxmac()
|
|
|
|
{
|
|
|
|
echo Making wxMac tarballs...
|
|
|
|
|
|
|
|
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...
|
2004-10-10 18:43:06 -04:00
|
|
|
make -j1 dist bzip-dist-only
|
2003-08-24 15:59:29 -04:00
|
|
|
|
|
|
|
cp $WXDEST/wxmac/release/*.tar.gz $WXDEST
|
|
|
|
cp $WXDEST/wxmac/release/*.tar.bz2 $WXDEST
|
2003-08-27 16:22:13 -04:00
|
|
|
|
|
|
|
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-08-25 05:56:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
docopydocs()
|
|
|
|
{
|
|
|
|
cp $WXSRC/docs/readme.txt $WXDEST/readme-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/changes.txt $WXDEST/changes-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/mgl/readme.txt $WXDEST/readme-mgl-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/mgl/install.txt $WXDEST/install-mgl-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/x11/readme.txt $WXDEST/readme-x11-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/x11/readme-nanox.txt $WXDEST/readme-nanox-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/x11/install.txt $WXDEST/install-x11-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/motif/readme.txt $WXDEST/readme-motif-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/motif/install.txt $WXDEST/install-motif-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/msw/readme.txt $WXDEST/readme-msw-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/msw/install.txt $WXDEST/install-msw-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/gtk/readme.txt $WXDEST/readme-gtk-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/gtk/install.txt $WXDEST/install-gtk-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/mac/readme.txt $WXDEST/readme-mac-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/mac/install.txt $WXDEST/install-mac-${WXVER}.txt
|
|
|
|
cp $WXSRC/docs/os2/install.txt $WXDEST/install-os2-${WXVER}.txt
|
2003-08-24 15:59:29 -04:00
|
|
|
}
|
|
|
|
|
2004-10-10 06:27:31 -04:00
|
|
|
dospindocs()
|
|
|
|
{
|
|
|
|
mkdir -p $WXSRC/docs/html/wx
|
|
|
|
mkdir -p $WXSRC/docs/html/tex2rtf
|
|
|
|
mkdir -p $WXSRC/docs/html/fl
|
|
|
|
mkdir -p $WXSRC/docs/html/ogl
|
|
|
|
mkdir -p $WXSRC/docs/htb
|
|
|
|
|
|
|
|
rm -f -r $WXSRC/docs/html/wx/*.htm*
|
|
|
|
rm -f -r $WXSRC/docs/htb/wx.htb
|
|
|
|
|
|
|
|
echo Making HTML wxWidgets manual...
|
|
|
|
cd $WXSRC/docs/latex/wx
|
|
|
|
cp *.gif $WXSRC/docs/html/wx
|
|
|
|
tex2rtf manual.tex $WXSRC/docs/html/wx/wx.htm -twice -html
|
|
|
|
|
|
|
|
echo Making HTB wxWidgets manual...
|
|
|
|
cd $WXSRC/docs/html/wx
|
|
|
|
zip -q $WXSRC/docs/htb/wx.htb *.html *.gif *.hhp *.hhc *.hhk
|
|
|
|
|
|
|
|
echo Archiving manuals...
|
|
|
|
# TODO
|
|
|
|
|
|
|
|
echo Done making manuals.
|
|
|
|
}
|
|
|
|
|
2003-08-24 15:59:29 -04:00
|
|
|
PROGNAME=$0
|
|
|
|
WXSRC=$1
|
|
|
|
WXDEST=$2
|
|
|
|
WXVER=$3
|
|
|
|
|
|
|
|
SPINWXX11=0
|
|
|
|
SPINWXGTK=0
|
|
|
|
SPINWXMOTIF=0
|
|
|
|
SPINWXMAC=0
|
|
|
|
SPINWXBASE=0
|
2004-10-10 18:43:06 -04:00
|
|
|
SPINWXMGL=0
|
2004-10-10 06:27:31 -04:00
|
|
|
SPINDOCS=0
|
2003-08-24 15:59:29 -04:00
|
|
|
SPINEVERYTHING=0
|
|
|
|
UPDATECVS=0
|
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
|
|
|
echo Usage: $PROGNAME "src-dir dest-dir version-number [ options ]"
|
|
|
|
echo Options:
|
|
|
|
echo " --help Display this help message"
|
|
|
|
echo " --wxgtk Spin wxGTK"
|
|
|
|
echo " --wxbase Spin wxBase"
|
|
|
|
echo " --wxx11 Spin wxX11"
|
|
|
|
echo " --wxmotif Spin wxMotif"
|
|
|
|
echo " --wxmac Spin wxMac"
|
2004-10-10 18:43:06 -04:00
|
|
|
echo " --wxmgl Spin wxMGL"
|
2004-10-10 06:27:31 -04:00
|
|
|
echo " --docs Spin docs"
|
2003-08-24 15:59:29 -04:00
|
|
|
echo " --all Spin EVERYTHING"
|
|
|
|
echo " --updatecvs Update from CVS"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
init=""
|
|
|
|
if [ "$1" = "" ]
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$2" = "" ]
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$3" = "" ]
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Process command line options.
|
|
|
|
shift 3
|
|
|
|
for i in "$@"; do
|
|
|
|
case "$i" in
|
|
|
|
--wxx11) SPINWXX11=1 ;;
|
|
|
|
--wxgtk) SPINWXGTK=1 ;;
|
|
|
|
--wxmac) SPINWXMAC=1 ;;
|
2004-10-10 18:43:06 -04:00
|
|
|
--wxbase) SPINWXBASE=1 ;;
|
|
|
|
--wxmgl) SPINWXMGL=1 ;;
|
2003-08-24 15:59:29 -04:00
|
|
|
--wxmotif) SPINWXMOTIF=1 ;;
|
|
|
|
--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-08-24 15:59:29 -04: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
|
|
|
|
|
|
|
|
if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxgtk
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxmotif
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxmac
|
|
|
|
fi
|
|
|
|
|
2004-10-10 18:43:06 -04:00
|
|
|
if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxmgl
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospinwxbase
|
|
|
|
fi
|
|
|
|
|
2004-10-10 06:27:31 -04:00
|
|
|
if [ "$SPINDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
|
|
|
|
dospindocs
|
|
|
|
fi
|
|
|
|
|
2003-08-25 05:56:20 -04:00
|
|
|
docopydocs
|