X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ce79e485dc69519895cd223b9e8b2d37155a077..4f09729dfb63907ee07fc9395ff47f6411eb7469:/distrib/msw/makesetup.sh diff --git a/distrib/msw/makesetup.sh b/distrib/msw/makesetup.sh index 311edc9157..a636dc1cea 100644 --- a/distrib/msw/makesetup.sh +++ b/distrib/msw/makesetup.sh @@ -22,7 +22,7 @@ PROGNAME=$0 SCRIPTDIR=$WXWIN/distrib/msw WEBFILES=c:/wx2dev/wxWebSite # Set this to the required version -VERSION=2.5.0 +VERSION=2.5.1 . $SCRIPTDIR/setup.var @@ -123,16 +123,24 @@ dospinos2() 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 + rm -f -r docs/html/tex2rtf - echo Making OS/2 files lower case... + # echo Making OS/2 files lower case... + # no longer necessary + # $SCRIPTDIR/namedown include/wx/os2/*.H + # $SCRIPTDIR/namedown src/os2/*.CPP src/os2/*.I - $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 @@ -174,7 +182,15 @@ dospinmac() cd $DESTDIR/wxWindows-$VERSION unzip $ZIPFLAGS ../wxMac-$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 + rm -f -r 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 @@ -204,10 +220,31 @@ dospinmsw() 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() @@ -318,18 +355,11 @@ dospinsetup() if [ ! -d bin ]; then mkdir bin fi - #cp $APPDIR/bin/dialoged.exe bin - #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 if [ ! -d docs/pdf ]; then @@ -589,6 +619,7 @@ usage() 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