]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/msw/makesetup.sh
Convert EOLs in pasted or DnD'd text to match what is in the current document.
[wxWidgets.git] / distrib / msw / makesetup.sh
index 54c820c417cc86f8822fa6a7cb75c726258fb19d..ea5bd526ccc2e71e29106aa0581408716645575a 100644 (file)
@@ -15,6 +15,7 @@ SPINMAC=0
 SPINOS2=0
 SPINDOCS=1
 SPINALL=1
+SPINWXALL=1
 VERBOSE=0
 ZIPFLAGS=
 
@@ -22,7 +23,7 @@ PROGNAME=$0
 SCRIPTDIR=$WXWIN/distrib/msw
 WEBFILES=c:/wx2dev/wxWebSite
 # Set this to the required version
-VERSION=2.5.1
+VERSION=2.5.2
 
 . $SCRIPTDIR/setup.var
 
@@ -158,6 +159,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
@@ -204,6 +206,7 @@ dospinmsw()
 
     # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW
     echo Zipping individual components
+    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
@@ -219,6 +222,8 @@ dospinmsw()
     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/dmc.rsp
 
 #    rearchive wxWidgets-$VERSION-win.zip wxWidgets-$VERSION $DESTDIR
 
@@ -247,6 +252,63 @@ dospinmsw()
     zip $ZIPFLAGS -r wxWidgets-$VERSION-win.zip wxWidgets-$VERSION/*
 }
 
+dospinwxall()
+{
+    cd $APPDIR
+
+    # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW
+    echo Zipping individual components
+    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/dmc.rsp
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/cw.rsp
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/cw_mac.rsp
+
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/x11.rsp
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/cocoa.rsp
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/motif.rsp
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/mac.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/mgl.rsp
+    zip $ZIPFLAGS -@ -u $DESTDIR/wxWidgets-$VERSION-win.zip < $APPDIR/distrib/msw/os2.rsp
+
+#    rearchive wxWidgets-$VERSION-win.zip wxWidgets-$VERSION $DESTDIR
+
+    if [ -d $DESTDIR/wxWidgets-$VERSION ]; then
+        rm -f -r $DESTDIR/wxWidgets-$VERSION
+    fi
+
+    mkdir $DESTDIR/wxWidgets-$VERSION
+    cd $DESTDIR/wxWidgets-$VERSION
+    unzip $ZIPFLAGS ../wxWidgets-$VERSION-win.zip
+
+    echo Copying readme files...
+    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
+
+    cd $DESTDIR
+
+    rm -f $DESTDIR/wxWidgets-$VERSION-win.zip
+    zip $ZIPFLAGS -r wxAll-$VERSION.zip wxWidgets-$VERSION/*
+}
+
 dospindocs()
 {
     cd $APPDIR
@@ -306,6 +368,16 @@ dospinmisc()
     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/wxWidgets-$VERSION-BC.zip
     zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-BC.zip < $APPDIR/distrib/msw/bc.rsp
@@ -324,7 +396,7 @@ dospinsetup()
     # Put all archives for transit to Linux in a zip file
     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-CW-Mac.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
 
     echo Unzipping the Windows files into wxWidgets-$VERSION
 
@@ -549,6 +621,11 @@ makesetup()
         dospinmsw
     fi
 
+    # Do wxAll spin
+    if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then
+        dospinwxall
+    fi
+
     # Do docs spin
     if [ "$SPINDOCS" = "1" ] || [ "$SPINALL" = "1" ]; then
         dospindocs
@@ -558,25 +635,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
     
@@ -620,6 +710,7 @@ usage()
     echo "    --wxmac           Build wxMac distribution"
     echo "    --wxmsw           Build wxMSW distribution"
     echo "    --wxos2           Build wxOS2 distribution"
+    echo "    --wxall           Build wxAll zip distribution"
     echo "    --docs            Build docs archives"
     echo "    --all             Build all distributions (the default)"
     echo "    --verbose         Verbose zip operation"
@@ -639,6 +730,7 @@ for i in "$@"; do
        --wxmac) SPINMAC=1; SPINALL=0 ;;
        --wxmsw) SPINMSW=1; SPINALL=0 ;;
        --wxos2) SPINOS2=1; SPINALL=0 ;;
+       --wxall) SPINWXALL=1; SPINALL=0 ;;
        --docs) SPINDOCS=1; SPINALL=0 ;;
        --all) SPINALL=1 ;;
        --verbose) VERBOSE=1 ;;