X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0451a04544e6abc61a3e81ee47b43f9067308b6b..3630713bd0d8bed793b4925e1d82ad200f883186:/distrib/msw/maketarballs diff --git a/distrib/msw/maketarballs b/distrib/msw/maketarballs index 5c9267566f..69dfdabf28 100755 --- a/distrib/msw/maketarballs +++ b/distrib/msw/maketarballs @@ -27,10 +27,56 @@ dospinwxgtk() echo Configuring... $WXSRC/configure --no-recursion echo Making... - make -j1 dist + make -j1 dist bzip-dist-only mv $WXDEST/wxgtk/release/*.gz $WXDEST/wxgtk/release/*.bz2 $WXDEST } +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 +} + dospinwxx11() { echo Making wxX11 tarballs... @@ -50,7 +96,7 @@ dospinwxx11() echo Configuring... $WXSRC/configure --with-x11 --no-recursion echo Making... - make -j1 dist + make -j1 dist bzip-dist-only cp $WXDEST/wxx11/release/*.tar.gz $WXDEST cp $WXDEST/wxx11/release/*.tar.bz2 $WXDEST @@ -75,7 +121,7 @@ dospinwxmotif() echo Configuring... $WXSRC/configure --with-motif --no-recursion echo Making... - make -j1 dist + make -j1 dist bzip-dist-only cp $WXDEST/wxmotif/release/*.tar.gz $WXDEST cp $WXDEST/wxmotif/release/*.tar.bz2 $WXDEST @@ -94,7 +140,7 @@ dospinwxmotif() bzip2 -f9 ../wxMotif-$WXVER.tar cd .. rm -f -r wxMotif.tmp - rm -f -r $WXDEST/wxmotif +# rm -f -r $WXDEST/wxmotif } dospinwxmac() @@ -116,7 +162,7 @@ dospinwxmac() echo Configuring... $WXSRC/configure --with-mac --no-recursion echo Making... - make -j1 dist + make -j1 dist bzip-dist-only cp $WXDEST/wxmac/release/*.tar.gz $WXDEST cp $WXDEST/wxmac/release/*.tar.bz2 $WXDEST @@ -195,9 +241,11 @@ SPINWXGTK=0 SPINWXMOTIF=0 SPINWXMAC=0 SPINWXBASE=0 +SPINWXMGL=0 SPINDOCS=0 SPINEVERYTHING=0 UPDATECVS=0 +SILENT=0 usage() { @@ -209,6 +257,7 @@ usage() echo " --wxx11 Spin wxX11" echo " --wxmotif Spin wxMotif" echo " --wxmac Spin wxMac" + echo " --wxmgl Spin wxMGL" echo " --docs Spin docs" echo " --all Spin EVERYTHING" echo " --updatecvs Update from CVS" @@ -242,9 +291,12 @@ for i in "$@"; do --wxx11) SPINWXX11=1 ;; --wxgtk) SPINWXGTK=1 ;; --wxmac) SPINWXMAC=1 ;; + --wxbase) SPINWXBASE=1 ;; + --wxmgl) SPINWXMGL=1 ;; --wxmotif) SPINWXMOTIF=1 ;; --all) SPINEVERYTHING=1 ;; --updatecvs) UPDATECVS=1 ;; + --silent) SILENT=1 ;; *) usage exit @@ -256,8 +308,12 @@ echo About to make wxWidgets RPMs: echo From $WXSRC echo To $WXDEST echo Version $WXVER -echo CTRL-C if this is not correct. -read dummy + +# we don't want this when batch building tarballs. +if [ "$SILENT" = "0" ]; then + echo CTRL-C if this is not correct. + read dummy +fi if [ "$UPDATECVS" = "1" ]; then doupdatecvs @@ -279,6 +335,14 @@ if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then dospinwxmac fi +if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then + dospinwxmgl +fi + +if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then + dospinwxbase +fi + if [ "$SPINDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then dospindocs fi