mkdir $DESTDIR/wxWindows-$VERSION
cd $DESTDIR/wxWindows-$VERSION
unzip $ZIPFLAGS ../wxOS2-$VERSION.zip
- echo Overwriting with OS2-specific versions of configure files...
- unzip $ZIPFLAGS -o $APPDIR/distrib/os2/os2-specific.zip
+ # No longer do this, configure should be OK (maybe)
+ # echo Overwriting with OS2-specific versions of configure files...
+ # unzip $ZIPFLAGS -o $APPDIR/distrib/os2/os2-specific.zip
rm -f src/gtk/descrip.mms src/motif/descrip.mms docs/pdf/*.pdf
rm -f src/tiff/*.mcp src/jpeg/*.mcp src/png/*.mcp src/zlib/*.mcp
rm -f -r docs/html/dialoged docs/html/tex2rtf
$SCRIPTDIR/namedown include/wx/os2/*.H
$SCRIPTDIR/namedown src/os2/*.CPP src/os2/*.I
+ echo Copying readme files...
+ cp $APPDIR/docs/os2/install.txt INSTALL-OS2.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
+
cd $DESTDIR
rm -f wxOS2-$VERSION.zip
rm -f src/gtk/descrip.mms src/motif/descrip.mms docs/pdf/*.pdf
rm -f -r docs/html/dialoged docs/html/tex2rtf docs/htmlhelp
+ echo Copying readme files...
+ cp $APPDIR/docs/mac/readme.txt README-MAC.txt
+ cp $APPDIR/docs/mac/install.txt INSTALL-MAC.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
+
cd $DESTDIR
rm -f wxMac-$VERSION.zip
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
+# rearchive wxWindows-$VERSION-win.zip wxWindows-$VERSION $DESTDIR
+
+ if [ -d $DESTDIR/wxWindows-$VERSION ]; then
+ rm -f -r $DESTDIR/wxWindows-$VERSION
+ fi
+
+ mkdir $DESTDIR/wxWindows-$VERSION
+ cd $DESTDIR/wxWindows-$VERSION
+ unzip $ZIPFLAGS ../wxWindows-$VERSION-win.zip
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 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
+
+ cd $DESTDIR
+
+ rm -f wxWindows-$VERSION-win.zip
+ zip $ZIPFLAGS -r wxWindows-$VERSION-win.zip wxWindows-$VERSION/*
}
dospindocs()
#cp $APPDIR/bin/dialoged.hlp bin
#cp $APPDIR/bin/dialoged.chm bin
cp $APPDIR/bin/tex2rtf.exe bin
- cp $APPDIR/bin/tex2rtf.hlp bin
- cp $APPDIR/bin/tex2rtf.cnt bin
+ cp $APPDIR/bin/tex2rtf.chm bin
cp $APPDIR/bin/widgets.exe bin
- cp $APPDIR/bin/widgets.exe.manifest bin
cp $APPDIR/bin/life.exe bin
- cp $APPDIR/bin/life.exe.manifest bin
cp $APPDIR/demos/life/breeder.lif bin
#cp $APPDIR/docs/htmlhelp/dialoged.chm bin
cp $APPDIR/docs/htmlhelp/tex2rtf.chm bin
echo " --wxos2 Build wxOS2 distribution"
echo " --docs Build docs archives"
echo " --all Build all distributions (the default)"
+ echo " --verbose Verbose zip operation"
echo.
echo Note that options only override settings in $SCRIPTDIR/setup.var.
exit 1