- 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
-
- echo Removing .mms files
- zip $ZIPFLAGS -d $DESTDIR/wxWindows-$VERSION-win.zip wxWindows-$VERSION/src/gtk/descrip.mms wxWindows-$VERSION/src/motif/descrip.mms
+ 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
+
+ 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-all.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-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/*