X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52f52ebc4e0be6a9899d328b08db9eb14629d219..3f31297359f62fa8671413c75c769ee952af8901:/distrib/msw/makesetup.sh diff --git a/distrib/msw/makesetup.sh b/distrib/msw/makesetup.sh index 99e1d3ce4c..84a2e7383e 100644 --- a/distrib/msw/makesetup.sh +++ b/distrib/msw/makesetup.sh @@ -2,7 +2,7 @@ # Make a distribution of an application on MSW. # Example: -# ../distrib/msw/makesetup.sh --wxmsw --verbose &> | cat > log +# ../distrib/msw/makesetup.sh --wxmsw --verbose &> log # If your zip accepts Cygwin-style paths, then # use cygpath, else substitute echo @@ -13,8 +13,11 @@ INNO=1 SPINMSW=0 SPINMAC=0 SPINOS2=0 -SPINDOCS=1 -SPINALL=1 +SPINDOCS=0 +SPINALL=0 +SPINWXALL=0 +SPINBASE=0 +GETMAKEFILES=0 VERBOSE=0 ZIPFLAGS= @@ -22,7 +25,7 @@ PROGNAME=$0 SCRIPTDIR=$WXWIN/distrib/msw WEBFILES=c:/wx2dev/wxWebSite # Set this to the required version -VERSION=2.5.1 +VERSION=2.6.2 . $SCRIPTDIR/setup.var @@ -83,6 +86,29 @@ rearchive() popd } +rearchivetar() +{ + archive=$1 + dirname=$2 + changeto=$3 + + echo Re-tarring $archive as $dirname + + pushd $changeto + + if [ -d $dirname ]; then + rm -f -r $dirname + fi + mkdir $dirname + cd $dirname + tar xfz ../$archive + cd .. + rm -f $archive + tar cfz $archive $dirname/* + + popd +} + # Find the version from wx/version.h # Not yet used findversion() @@ -98,7 +124,7 @@ findversion() dospinos2() { cd $APPDIR - echo Zipping OS/2 + echo Zipping OS/2... # Zip up the complete wxOS2-xxx.zip file zip $ZIPFLAGS -@ $DESTDIR/wxOS2-$VERSION.zip < $APPDIR/distrib/msw/generic.rsp @@ -115,13 +141,13 @@ dospinos2() zip $ZIPFLAGS -u -@ $DESTDIR/wxOS2-$VERSION.zip < $APPDIR/distrib/msw/deprecated.rsp zip $ZIPFLAGS -u -@ $DESTDIR/wxOS2-$VERSION.zip < $APPDIR/distrib/msw/makefile.rsp - # Rearchive under wxWindows-$VERSION - if [ -d $DESTDIR/wxWindows-$VERSION ]; then - rm -f -r $DESTDIR/wxWindows-$VERSION + # Rearchive under wxWidgets-$VERSION + if [ -d $DESTDIR/wxWidgets-$VERSION ]; then + rm -f -r $DESTDIR/wxWidgets-$VERSION fi - mkdir $DESTDIR/wxWindows-$VERSION - cd $DESTDIR/wxWindows-$VERSION + mkdir $DESTDIR/wxWidgets-$VERSION + cd $DESTDIR/wxWidgets-$VERSION unzip $ZIPFLAGS ../wxOS2-$VERSION.zip # No longer do this, configure should be OK # echo Overwriting with OS2-specific versions of configure files... @@ -145,11 +171,12 @@ dospinos2() cd $DESTDIR rm -f wxOS2-$VERSION.zip - zip $ZIPFLAGS -r wxOS2-$VERSION.zip wxWindows-$VERSION/* + zip $ZIPFLAGS -r wxOS2-$VERSION.zip wxWidgets-$VERSION/* } dospinmac() { + echo Spinning wxMac... cd $APPDIR echo Zipping wxMac distribution @@ -158,6 +185,7 @@ dospinmac() zip $ZIPFLAGS -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/generic.rsp zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/mac.rsp + zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/cocoa.rsp zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/cw_mac.rsp zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/tiff.rsp zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/jpeg.rsp @@ -170,16 +198,16 @@ dospinmac() zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/deprecated.rsp zip $ZIPFLAGS -u -@ $DESTDIR/wxMac-$VERSION.zip < $APPDIR/distrib/msw/makefile.rsp - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-CW-Mac.zip < $APPDIR/distrib/msw/cw_mac.rsp + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-CW-Mac.zip < $APPDIR/distrib/msw/cw_mac.rsp rm -f $APPDIR/include/wx/setup.h - if [ -d $DESTDIR/wxWindows-$VERSION ]; then - rm -f -r $DESTDIR/wxWindows-$VERSION + if [ -d $DESTDIR/wxWidgets-$VERSION ]; then + rm -f -r $DESTDIR/wxWidgets-$VERSION fi - mkdir $DESTDIR/wxWindows-$VERSION - cd $DESTDIR/wxWindows-$VERSION + mkdir $DESTDIR/wxWidgets-$VERSION + cd $DESTDIR/wxWidgets-$VERSION unzip $ZIPFLAGS ../wxMac-$VERSION.zip rm -f src/gtk/descrip.mms src/motif/descrip.mms docs/pdf/*.pdf rm -f -r docs/html/tex2rtf docs/htmlhelp @@ -195,47 +223,62 @@ dospinmac() cd $DESTDIR rm -f wxMac-$VERSION.zip - zip $ZIPFLAGS -r wxMac-$VERSION.zip wxWindows-$VERSION/* + zip $ZIPFLAGS -r wxMac-$VERSION.zip wxWidgets-$VERSION/* } dospinmsw() { + echo Zipping wxMSW... cd $APPDIR - # Create wxWindows-$VERSION-win.zip which is used to create wxMSW + # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW echo Zipping individual components - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/generic.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/makefile.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/msw.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/ogl.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/mmedia.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/stc.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/tex2rtf.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/jpeg.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/tiff.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/xml.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/contrib.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/deprecated.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/utils.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/utilmake.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-win.zip < $APPDIR/distrib/msw/univ.rsp - -# rearchive wxWindows-$VERSION-win.zip wxWindows-$VERSION $DESTDIR - - if [ -d $DESTDIR/wxWindows-$VERSION ]; then - rm -f -r $DESTDIR/wxWindows-$VERSION + rm -f $DESTDIR/wxWidgets-$VERSION-win.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/generic.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/makefile.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/msw.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/ogl.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/mmedia.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/stc.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/tex2rtf.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/jpeg.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/tiff.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/xml.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/contrib.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/deprecated.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/utils.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/utilmake.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/univ.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/wince.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/palmos.rsp +} + +dospinwxall() +{ + echo Zipping wxAll... + cd $APPDIR + + echo Zipping individual components + rm -f $DESTDIR/wxWidgets-$VERSION-all.zip + + # Save adding all the wxMSW files again + if [ ! -f $DESTDIR/wxWidgets-$VERSION-win.zip ]; then + dospinmsw fi + cp $DESTDIR/wxWidgets-$VERSION-win.zip $DESTDIR/wxWidgets-$VERSION-all.zip + + cat $APPDIR/distrib/msw/cw_mac.rsp $APPDIR/distrib/msw/vc.rsp $APPDIR/distrib/msw/x11.rsp $APPDIR/distrib/msw/gtk.rsp $APPDIR/distrib/msw/cocoa.rsp $APPDIR/distrib/msw/motif.rsp $APPDIR/distrib/msw/mac.rsp $APPDIR/distrib/msw/mgl.rsp $APPDIR/distrib/msw/os2.rsp $APPDIR/distrib/msw/palmos.rsp | sort | uniq > /tmp/all.txt + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-all.zip < /tmp/all.txt - mkdir $DESTDIR/wxWindows-$VERSION - cd $DESTDIR/wxWindows-$VERSION - unzip $ZIPFLAGS ../wxWindows-$VERSION-win.zip + if [ -d $DESTDIR/wxWidgets-$VERSION ]; then + rm -f -r $DESTDIR/wxWidgets-$VERSION + fi - echo Removing .mms files - rm -f src/gtk/descrip.mms src/motif/descrip.mms + mkdir $DESTDIR/wxWidgets-$VERSION + cd $DESTDIR/wxWidgets-$VERSION + unzip $ZIPFLAGS ../wxWidgets-$VERSION-all.zip echo Copying readme files... - cp $APPDIR/docs/msw/readme.txt README-MSW.txt - cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt cp $APPDIR/docs/licence.txt LICENCE.txt cp $APPDIR/docs/lgpl.txt COPYING.LIB cp $APPDIR/docs/changes.txt CHANGES.txt @@ -243,53 +286,86 @@ dospinmsw() cd $DESTDIR - rm -f wxWindows-$VERSION-win.zip - zip $ZIPFLAGS -r wxWindows-$VERSION-win.zip wxWindows-$VERSION/* + rm -f $DESTDIR/wxWidgets-$VERSION-all.zip + zip $ZIPFLAGS -r wxWidgets-$VERSION.zip wxWidgets-$VERSION/* +} + +dospinbase() +{ + cd $APPDIR + + echo Zipping wxBase... + rm -f $DESTDIR/wxBase-$VERSION.zip + zip $ZIPFLAGS -@ $DESTDIR/wxBase-$VERSION.zip < $APPDIR/distrib/msw/base.rsp + + if [ -d $DESTDIR/wxWidgets-$VERSION ]; then + rm -f -r $DESTDIR/wxWidgets-$VERSION + fi + + mkdir $DESTDIR/wxWidgets-$VERSION + cd $DESTDIR/wxWidgets-$VERSION + unzip $ZIPFLAGS ../wxBase-$VERSION.zip + + echo Copying readme files... + cp $APPDIR/docs/base/readme.txt README.txt + cp $APPDIR/docs/licence.txt LICENCE.txt + cp $APPDIR/docs/lgpl.txt COPYING.LIB + cp $APPDIR/docs/changes.txt CHANGES.txt + cp $APPDIR/docs/readme.txt README2.txt + + cd $DESTDIR + + rm -f wxBase-$VERSION.zip + zip $ZIPFLAGS -r wxBase-$VERSION.zip wxWidgets-$VERSION/* } dospindocs() { cd $APPDIR - echo Creating $DESTDIR/wxWindows-$VERSION-DocSource.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-DocSource.zip < $APPDIR/distrib/msw/docsrc.rsp - rearchive wxWindows-$VERSION-DocSource.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-DocSource.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-DocSource.zip < $APPDIR/distrib/msw/docsrc.rsp + rearchive wxWidgets-$VERSION-DocSource.zip wxWidgets-$VERSION $DESTDIR - echo Creating $DESTDIR/wxWindows-$VERSION-WinHelp.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-WinHelp.zip < $APPDIR/distrib/msw/wx_hlp.rsp - rearchive wxWindows-$VERSION-WinHelp.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-WinHelp.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-WinHelp.zip < $APPDIR/distrib/msw/wx_hlp.rsp + rearchive wxWidgets-$VERSION-WinHelp.zip wxWidgets-$VERSION $DESTDIR - echo Creating $DESTDIR/wxWindows-$VERSION-HTML.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-HTML.zip < $APPDIR/distrib/msw/wx_html.rsp - rearchive wxWindows-$VERSION-HTML.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-HTML.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-HTML.zip < $APPDIR/distrib/msw/wx_html.rsp + rearchive wxWidgets-$VERSION-HTML.zip wxWidgets-$VERSION $DESTDIR - echo Creating $DESTDIR/wxWindows-$VERSION-PDF.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-PDF.zip < $APPDIR/distrib/msw/wx_pdf.rsp - rearchive wxWindows-$VERSION-PDF.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-PDF.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-PDF.zip < $APPDIR/distrib/msw/wx_pdf.rsp + rearchive wxWidgets-$VERSION-PDF.zip wxWidgets-$VERSION $DESTDIR - # zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-Word.zip < $APPDIR/distrib/msw/wx_word.rsp - # rearchive wxWindows-$VERSION-Word.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-PDF.tar.gz + tar zcf /c/wx2dev/wxWindows/deliver/wxWidgets-$VERSION-PDF.tar.gz docs/pdf/*.pdf + rearchivetar wxWidgets-$VERSION-PDF.tar.gz wxWidgets-$VERSION /c/wx2dev/wxWindows/deliver - echo Creating $DESTDIR/wxWindows-$VERSION-HTB.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-HTB.zip < $APPDIR/distrib/msw/wx_htb.rsp - rearchive wxWindows-$VERSION-HTB.zip wxWindows-$VERSION $DESTDIR + # zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-Word.zip < $APPDIR/distrib/msw/wx_word.rsp + # rearchive wxWidgets-$VERSION-Word.zip wxWidgets-$VERSION $DESTDIR - echo Creating $DESTDIR/wxWindows-$VERSION-HTMLHelp.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-HTMLHelp.zip < $APPDIR/distrib/msw/wx_chm.rsp - rearchive wxWindows-$VERSION-HTMLHelp.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-HTB.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-HTB.zip < $APPDIR/distrib/msw/wx_htb.rsp + rearchive wxWidgets-$VERSION-HTB.zip wxWidgets-$VERSION $DESTDIR + + echo Creating $DESTDIR/wxWidgets-$VERSION-HTMLHelp.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-HTMLHelp.zip < $APPDIR/distrib/msw/wx_chm.rsp + rearchive wxWidgets-$VERSION-HTMLHelp.zip wxWidgets-$VERSION $DESTDIR # Add Linuxy docs to a separate archive to be transported to Linux for the # Linux-based releases - echo Creating $DESTDIR/wxWindows-$VERSION-LinuxDocs.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-LinuxDocs.zip < $APPDIR/distrib/msw/wx_html.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-LinuxDocs.zip < $APPDIR/distrib/msw/wx_pdf.rsp - zip $ZIPFLAGS -@ -u $DESTDIR/wxWindows-$VERSION-LinuxDocs.zip < $APPDIR/distrib/msw/wx_htb.rsp + echo Creating $DESTDIR/wxWidgets-$VERSION-LinuxDocs.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-LinuxDocs.zip < $APPDIR/distrib/msw/wx_html.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-LinuxDocs.zip < $APPDIR/distrib/msw/wx_pdf.rsp + zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-LinuxDocs.zip < $APPDIR/distrib/msw/wx_htb.rsp # PDF/HTML docs that should go into the Windows setup because # there are no WinHelp equivalents - echo Creating $DESTDIR/wxWindows-$VERSION-ExtraDoc.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-ExtraDoc.zip < $APPDIR/distrib/msw/extradoc.rsp - rearchive wxWindows-$VERSION-ExtraDoc.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-ExtraDoc.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-ExtraDoc.zip < $APPDIR/distrib/msw/extradoc.rsp + rearchive wxWidgets-$VERSION-ExtraDoc.zip wxWidgets-$VERSION $DESTDIR } dospinmisc() @@ -297,24 +373,34 @@ dospinmisc() cd $APPDIR # zip up Univ-specific files - echo Creating $DESTDIR/wxWindows-$VERSION-Univ.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-Univ.zip < $APPDIR/distrib/msw/univ.rsp - rearchive wxWindows-$VERSION-Univ.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-Univ.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-Univ.zip < $APPDIR/distrib/msw/univ.rsp + rearchive wxWidgets-$VERSION-Univ.zip wxWidgets-$VERSION $DESTDIR # VC++ project files - echo Creating $DESTDIR/wxWindows-$VERSION-VC.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-VC.zip < $APPDIR/distrib/msw/vc.rsp - # rearchive wxWindows-$VERSION-VC.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-VC.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-VC.zip < $APPDIR/distrib/msw/vc.rsp + # rearchive wxWidgets-$VERSION-VC.zip wxWidgets-$VERSION $DESTDIR + + # eVC++ project files + echo Creating $DESTDIR/wxWidgets-$VERSION-eVC.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-eVC.zip < $APPDIR/distrib/msw/wince.rsp + # rearchive wxWidgets-$VERSION-eVC.zip wxWidgets-$VERSION $DESTDIR + + # DMC project files + echo Creating $DESTDIR/wxWidgets-$VERSION-DMC.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-DMC.zip < $APPDIR/distrib/msw/dmc.rsp + # rearchive wxWidgets-$VERSION-DMC.zip wxWidgets-$VERSION $DESTDIR # BC++ project files - echo Creating $DESTDIR/wxWindows-$VERSION-BC.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-BC.zip < $APPDIR/distrib/msw/bc.rsp - # rearchive wxWindows-$VERSION-BC.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-BC.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-BC.zip < $APPDIR/distrib/msw/bc.rsp + # rearchive wxWidgets-$VERSION-BC.zip wxWidgets-$VERSION $DESTDIR # CodeWarrior project files - echo Creating $DESTDIR/wxWindows-$VERSION-CW.zip - zip $ZIPFLAGS -@ $DESTDIR/wxWindows-$VERSION-CW.zip < $APPDIR/distrib/msw/cw.rsp - # rearchive wxWindows-$VERSION-CW.zip wxWindows-$VERSION $DESTDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-CW.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-CW.zip < $APPDIR/distrib/msw/cw.rsp + # rearchive wxWidgets-$VERSION-CW.zip wxWidgets-$VERSION $DESTDIR } dospinsetup() @@ -322,23 +408,45 @@ dospinsetup() cd $DESTDIR # Put all archives for transit to Linux in a zip file - echo Creating $DESTDIR/wxWindows-$VERSION-LinuxTransit.zip - rm -f $DESTDIR/wxWindows-$VERSION-LinuxTransit.zip - zip $ZIPFLAGS $DESTDIR/wxWindows-$VERSION-LinuxTransit.zip wxWindows-$VERSION-LinuxDocs.zip wxWindows-$VERSION-VC.zip wxWindows-$VERSION-CW-Mac.zip + echo Creating $DESTDIR/wxWidgets-$VERSION-LinuxTransit.zip + rm -f $DESTDIR/wxWidgets-$VERSION-LinuxTransit.zip + zip $ZIPFLAGS $DESTDIR/wxWidgets-$VERSION-LinuxTransit.zip wxWidgets-$VERSION-LinuxDocs.zip wxWidgets-$VERSION-VC.zip wxWidgets-$VERSION-DMC.zip wxWidgets-$VERSION-eVC.zip wxWidgets-$VERSION-CW-Mac.zip + + if [ ! -f $DESTDIR/wxWidgets-$VERSION-HTMLHelp.zip ]; then + cd $APPDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-HTMLHelp.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-HTMLHelp.zip < $APPDIR/distrib/msw/wx_chm.rsp + rearchive wxWidgets-$VERSION-HTMLHelp.zip wxWidgets-$VERSION $DESTDIR + cd $DESTDIR + fi + + if [ ! -f $DESTDIR/wxWidgets-$VERSION-ExtraDoc.zip ]; then + cd $APPDIR + echo Creating $DESTDIR/wxWidgets-$VERSION-ExtraDoc.zip + zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-ExtraDoc.zip < $APPDIR/distrib/msw/extradoc.rsp + rearchive wxWidgets-$VERSION-ExtraDoc.zip wxWidgets-$VERSION $DESTDIR + cd $DESTDIR + fi + + rm -f -r wxWidgets-$VERSION - echo Unzipping the Windows files into wxWindows-$VERSION + echo Unzipping the Windows files into wxWidgets-$VERSION - unzip $ZIPFLAGS -o wxWindows-$VERSION-win.zip - unzip $ZIPFLAGS -o wxWindows-$VERSION-VC.zip -d wxWindows-$VERSION - unzip $ZIPFLAGS -o wxWindows-$VERSION-BC.zip -d wxWindows-$VERSION - unzip $ZIPFLAGS -o wxWindows-$VERSION-CW.zip -d wxWindows-$VERSION - unzip $ZIPFLAGS -o wxWindows-$VERSION-HTMLHelp.zip - unzip $ZIPFLAGS -o wxWindows-$VERSION-ExtraDoc.zip + mkdir -p wxWidgets-$VERSION + + unzip $ZIPFLAGS -o wxWidgets-$VERSION-win.zip -d wxWidgets-$VERSION + unzip $ZIPFLAGS -o wxWidgets-$VERSION-VC.zip -d wxWidgets-$VERSION + unzip $ZIPFLAGS -o wxWidgets-$VERSION-DMC.zip -d wxWidgets-$VERSION + unzip $ZIPFLAGS -o wxWidgets-$VERSION-BC.zip -d wxWidgets-$VERSION + unzip $ZIPFLAGS -o wxWidgets-$VERSION-CW.zip -d wxWidgets-$VERSION + + unzip $ZIPFLAGS -o wxWidgets-$VERSION-HTMLHelp.zip + unzip $ZIPFLAGS -o wxWidgets-$VERSION-ExtraDoc.zip # After this change of directory, we're in the # temporary 'wx' directory and not acting on - # the source wxWindows directory. - cd $DESTDIR/wxWindows-$VERSION + # the source wxWidgets directory. + cd $DESTDIR/wxWidgets-$VERSION # Now delete a few files that are unnecessary #attrib -R * @@ -349,7 +457,15 @@ dospinsetup() rm -f src/mingegcs.bat rm -f -r distrib rm -f *.spec - rm -f -r contrib/utils/wxrcedit + rm -f src/gtk/descrip.mms src/motif/descrip.mms + + echo Copying readme files... + cp $APPDIR/docs/msw/readme.txt README-MSW.txt + cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt + cp $APPDIR/docs/licence.txt LICENCE.txt + cp $APPDIR/docs/lgpl.txt COPYING.LIB + cp $APPDIR/docs/changes.txt CHANGES.txt + cp $APPDIR/docs/readme.txt README.txt # Now cp some binary files to 'bin' if [ ! -d bin ]; then @@ -369,8 +485,8 @@ dospinsetup() # Make wxMSW-xxx.zip cd $DESTDIR - zip $ZIPFLAGS -r wxMSW-$VERSION.zip wxWindows-$VERSION/* - cd wxWindows-$VERSION + zip $ZIPFLAGS -r wxMSW-$VERSION.zip wxWidgets-$VERSION/* + cd wxWidgets-$VERSION echo Generating $SETUPSCRIPTNAME rm -f $SETUPSCRIPTNAME @@ -416,7 +532,7 @@ dospinsetup() doreplace $SETUPSCRIPTNAME "s;%HELPFILE%;$RETVALUE;g" fi - rm -f $DESTDIR/setup*.* + rm -f $DESTDIR/setup*.* $DESTDIR/wxMSW-$VERSION-Setup.exe # Inno Setup complains if this step is not done unix2dos --unix2dos $SETUPSCRIPTNAME @@ -443,13 +559,19 @@ dospinsetup() fi cd $DESTDIR -# mv setup.exe $APPNAME-$VERSION-setup.exe + mv setup.exe wxMSW-$VERSION-Setup.exe - echo Putting all the setup files into a single zip archive - zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.* + # echo Putting all the setup files into a single zip archive + # zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.* - rm -f wxWindows-$VERSION-win.zip - rm -f wxWindows-$VERSION-ExtraDoc.zip + rm -f wxWidgets-$VERSION-win.zip + rm -f wxWidgets-$VERSION-ExtraDoc.zip + rm -f wxWidgets-$VERSION-DMC.zip + rm -f wxWidgets-$VERSION-eVC.zip + rm -f wxWidgets-$VERSION-Univ.zip + rm -f wxWidgets-$VERSION-VC.zip + rm -f wxWidgets-$VERSION-DocSource.zip + rm -f wxWidgets-$VERSION-LinuxDocs.zip echo If you saw no warnings or errors, $APPTITLE was successfully spun. echo @@ -514,8 +636,8 @@ makesetup() if [ ! -d $DESTDIR ]; then mkdir $DESTDIR fi - if [ -d $DESTDIR/wxWindows-$VERSION ]; then - rm -f -r $DESTDIR/wxWindows-$VERSION + if [ -d $DESTDIR/wxWidgets-$VERSION ]; then + rm -f -r $DESTDIR/wxWidgets-$VERSION fi # Copy FAQ from wxWebSite CVS @@ -530,7 +652,8 @@ makesetup() cp $WEBFILES/site/i18n.htm $APPDIR/docs/html # Copy setup0.h files to setup.h - cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h + # OS/2 always built with configure now + # cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h cp $APPDIR/include/wx/msw/setup0.h $APPDIR/include/wx/msw/setup.h cp $APPDIR/include/wx/univ/setup0.h $APPDIR/include/wx/univ/setup.h @@ -549,6 +672,16 @@ makesetup() dospinmsw fi + # Do wxBase spin + if [ "$SPINBASE" = "1" ] || [ "$SPINALL" = "1" ]; then + dospinbase + fi + + # Do wxAll spin + if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then + dospinwxall + fi + # Do docs spin if [ "$SPINDOCS" = "1" ] || [ "$SPINALL" = "1" ]; then dospindocs @@ -558,25 +691,38 @@ makesetup() dospinmisc cp $APPDIR/docs/changes.txt $DESTDIR/changes-$VERSION.txt + cp $APPDIR/docs/readme.txt $DESTDIR/readme-$VERSION.txt + + cp $APPDIR/docs/msw/readme.txt $DESTDIR/readme-msw-$VERSION.txt cp $APPDIR/docs/msw/install.txt $DESTDIR/install-msw-$VERSION.txt + + cp $APPDIR/docs/mac/readme.txt $DESTDIR/readme-mac-$VERSION.txt cp $APPDIR/docs/mac/install.txt $DESTDIR/install-mac-$VERSION.txt + + cp $APPDIR/docs/motif/readme.txt $DESTDIR/readme-motif-$VERSION.txt cp $APPDIR/docs/motif/install.txt $DESTDIR/install-motif-$VERSION.txt + + cp $APPDIR/docs/gtk/readme.txt $DESTDIR/readme-gtk-$VERSION.txt cp $APPDIR/docs/gtk/install.txt $DESTDIR/install-gtk-$VERSION.txt + + cp $APPDIR/docs/x11/readme.txt $DESTDIR/readme-x11-$VERSION.txt +# cp $APPDIR/docs/x11/readme-nanox.txt $DESTDIR/readme-nanox-$VERSION.txt cp $APPDIR/docs/x11/install.txt $DESTDIR/install-x11-$VERSION.txt + cp $APPDIR/docs/mgl/readme.txt $DESTDIR/readme-mgl-$VERSION.txt cp $APPDIR/docs/mgl/install.txt $DESTDIR/install-mgl-$VERSION.txt - cp $APPDIR/docs/readme.txt $DESTDIR/readme-$VERSION.txt - cp $APPDIR/docs/motif/readme.txt $DESTDIR/readme-motif-$VERSION.txt - cp $APPDIR/docs/gtk/readme.txt $DESTDIR/readme-gtk-$VERSION.txt - cp $APPDIR/docs/x11/readme.txt $DESTDIR/readme-x11-$VERSION.txt - cp $APPDIR/docs/x11/readme-nanox.txt $DESTDIR/readme-nanox-$VERSION.txt - cp $APPDIR/docs/msw/readme.txt $DESTDIR/readme-msw-$VERSION.txt - cp $APPDIR/docs/mac/readme.txt $DESTDIR/readme-mac-$VERSION.txt + cp $APPDIR/docs/cocoa/readme.txt $DESTDIR/readme-cocoa-$VERSION.txt + cp $APPDIR/docs/cocoa/install.txt $DESTDIR/install-cocoa-$VERSION.txt + cp $APPDIR/docs/base/readme.txt $DESTDIR/readme-base-$VERSION.txt + cp $APPDIR/docs/os2/install.txt $DESTDIR/install-os2-$VERSION.txt + cp $APPDIR/docs/univ/readme.txt $DESTDIR/readme-univ-$VERSION.txt + cp $APPDIR/docs/readme_vms.txt $DESTDIR/readme-vms-$VERSION.txt + # cp $APPDIR/docs/motif/makewxmotif $DESTDIR/makewxmotif-$VERSION # cp $APPDIR/docs/gtk/makewxgtk $DESTDIR/makewxgtk-$VERSION @@ -586,8 +732,26 @@ makesetup() fi } +# Get the makefiles that aren't in CVS and unarchive them +getmakefiles() +{ + echo Getting eVC++ project files... + curl http://biolpc22.york.ac.uk/pub/CVS_Makefiles/wx-mk-evcprj.zip --output /c/transit/wx-mk-evcprj.zip + echo Getting Digital Mars makefiles... + curl http://biolpc22.york.ac.uk/pub/CVS_Makefiles/wx-mk-dmars.zip --output /c/transit/wx-mk-dmars.zip + echo Getting VC++ makefiles... + curl http://biolpc22.york.ac.uk/pub/CVS_Makefiles/wx-mk-msvc.zip --output /c/transit/wx-mk-msvc.zip + + cd $APPDIR + echo Unarchiving makefiles and project files... + unzip -o -a /c/transit/wx-mk-evcprj.zip + unzip -o -a /c/transit/wx-mk-dmars.zip + unzip -o -a /c/transit/wx-mk-msvc.zip + echo Done getting makefiles and project files. +} + # We can't use e.g. this: -# ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWindows-$VERSION-gen.zip +# ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip # because there's not enough space on the command line, plus we need to ignore the # blank lines. # So if we need to (not in this script so far) we do something like this instead: @@ -620,8 +784,11 @@ usage() echo " --wxmac Build wxMac distribution" echo " --wxmsw Build wxMSW distribution" echo " --wxos2 Build wxOS2 distribution" + echo " --wxall Build wxAll zip distribution" + echo " --wxbase Build wxBase zip distribution" echo " --docs Build docs archives" echo " --all Build all distributions (the default)" + echo " --getmakefiles Get out-of-CVS makefiles and unarchive into the wxWidgets source tree" echo " --verbose Verbose zip operation" echo. echo Note that options only override settings in $SCRIPTDIR/setup.var. @@ -639,6 +806,9 @@ for i in "$@"; do --wxmac) SPINMAC=1; SPINALL=0 ;; --wxmsw) SPINMSW=1; SPINALL=0 ;; --wxos2) SPINOS2=1; SPINALL=0 ;; + --wxall) SPINWXALL=1; SPINALL=0 ;; + --wxbase) SPINBASE=1; SPINALL=0 ;; + --getmakefiles) GETMAKEFILES=1; SPINALL=0 ;; --docs) SPINDOCS=1; SPINALL=0 ;; --all) SPINALL=1 ;; --verbose) VERBOSE=1 ;; @@ -649,8 +819,14 @@ for i in "$@"; do esac done + doinit +if [ "$GETMAKEFILES" = "1" ]; then + getmakefiles + exit +fi + # findversion makesetup