]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/zipwxos2.bat
use MoreFilesX instead of MoreFiles when building with Apple Developer Tools
[wxWidgets.git] / distrib / msw / zipwxos2.bat
1 @echo off
2 rem Zip up a wxOS2 distribution.
3 set src=%wxwin
4 set dest=%src\deliver
5 set webfiles=c:\wx2dev\wxWebSite
6
7 Rem Set this to the required version
8 set version=2.3.4
9
10 if "%src" == "" goto usage
11 if "%dest" == "" goto usage
12 if "%1" == "-help" goto usage
13 if "%1" == "--help" goto usage
14 if "%1" == "/?" goto usage
15 echo About to archive an external wxOS2 distribution:
16 echo From %src
17 echo To %dest
18 echo CTRL-C if this is not correct.
19 pause
20
21 erase %dest\wxOS2*.zip
22
23 if not direxist %dest mkdir %dest
24 if direxist %dest%\wxWindows-%version% erase /sxyz %dest%\wxWindows-%version%
25
26 echo Zipping wxOS2 distribution
27
28 cd %src%
29 Rem copy %src%\include\wx\os2\setup0.h %src%\include\wx\setup.h
30
31 zip32 -@ %dest\wxOS2-%version%.zip < %src\distrib\msw\generic.rsp
32 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\os2.rsp
33 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\jpeg.rsp
34 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\tiff.rsp
35 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tiff.rsp
36 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\jpeg.rsp
37 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\utils.rsp
38 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
39 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\dialoged.rsp
40 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\ogl.rsp
41 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\xml.rsp
42 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\contrib.rsp
43 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\makefile.rsp
44
45 Rem erase /Y %src%\include\wx\setup.h
46
47 if direxist %dest%\wxOS2-%version% erase /sxyz %dest%\wxOS2-%version%
48
49 mkdir %dest%\wxOS2-%version%
50 cd %dest%\wxOS2-%version%
51 unzip32 ..\wxOS2-%version%.zip
52 echo Overwriting with OS2-specific versions of configure files...
53 unzip32 -o %src%\distrib\os2\os2-specific.zip
54 erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf
55 erase /Y src\tiff\*.mcp src\jpeg\*.mcp src\png\*.mcp src\zlib\*.mcp
56 erase /SXY docs\html\dialoged docs\html\tex2rtf
57
58 echo Making files lower case...
59 cd src\os2
60 call %src%\distrib\msw\lower.bat
61 cd ..\..\include\wx\os2
62 call %src%\distrib\msw\lower.bat
63
64 cd %dest%
65
66 erase wxOS2-%version%.zip
67 zip32 -r wxOS2-%version%.zip wxOS2-%version%/*
68 erase /sxyz wxOS2-%version%
69
70 echo wxOS2 archived.
71
72 goto end
73
74 :usage
75 echo DOS wxWindows distribution. Zips up wxOS2.
76 echo.
77 echo "Usage: zipwxos2"
78
79 :end