- rm -f wxWidgets-$VERSION-win.zip
- zip $ZIPFLAGS -r wxWidgets-$VERSION-win.zip wxWidgets-$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/*