]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/msw/makesetup.sh
Shell Script file to copy setup.h for ProjectBuilder
[wxWidgets.git] / distrib / msw / makesetup.sh
index 311edc91579561fbf133a33c1c2389e2fb99e4de..fdbf7a27b0bb7457e94f7443b3e8d2a6d07f76c2 100644 (file)
@@ -123,8 +123,9 @@ 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
@@ -134,6 +135,13 @@ dospinos2()
     $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
@@ -176,6 +184,14 @@ dospinmac()
     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
@@ -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()
@@ -322,12 +359,9 @@ dospinsetup()
     #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
@@ -589,6 +623,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