]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/zipwxmac.bat
Added build instructions, readme, and TODO
[wxWidgets.git] / distrib / msw / zipwxmac.bat
1 @echo off
2 rem Zip up a wxMac distribution, .zip and .sit
3 rem using Inno Setup + ScriptMaker
4 set src=%wxwin
5 set dest=%src\deliver
6 set webfiles=c:\wx2dev\wxWebSite
7 set stuffit="c:\Program Files\Aladdin Systems\StuffIt 7.5\StuffIt.exe"
8
9 Rem Set this to the required version
10 set version=2.3.4
11
12 if "%src" == "" goto usage
13 if "%dest" == "" goto usage
14 if "%1" == "-help" goto usage
15 if "%1" == "--help" goto usage
16 if "%1" == "/?" goto usage
17 echo About to archive an external wxMac distribution:
18 echo From %src
19 echo To %dest
20 echo CTRL-C if this is not correct.
21 pause
22
23 erase %dest\wxMac*.zip
24 erase %dest\wxMac*.sit
25
26 if not direxist %dest mkdir %dest
27 if direxist %dest%\wxWindows-%version% erase /sxyz %dest%\wxWindows-%version%
28
29 echo Zipping wxMac distribution
30
31 cd %src%
32 copy %src%\include\wx\mac\setup0.h %src%\include\wx\setup.h
33
34 zip32 -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\generic.rsp
35 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\mac.rsp
36 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\cw_mac.rsp
37 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tiff.rsp
38 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\jpeg.rsp
39 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\utils.rsp
40 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
41 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
42 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
43 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
44 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\stc.rsp
45 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\contrib.rsp
46 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\makefile.rsp
47
48 erase /Y %src%\include\wx\setup.h
49
50 if direxist %dest%\wxMac-%version% erase /sxyz %dest%\wxMac-%version%
51
52 mkdir %dest%\wxMac-%version%
53 cd %dest%\wxMac-%version%
54 unzip32 ..\wxMac-%version%.zip
55 erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf
56 erase /SXY docs\html\dialoged docs\html\tex2rtf
57
58 cd %dest%
59
60 erase wxMac-%version%.zip
61 zip32 -r wxMac-%version%.zip wxMac-%version%/*
62
63 erase /sxyz %dest%\wxMac-%version%
64
65 Rem echo Making StuffIt archive...
66 Rem set stuffitcmd=%stuffit% -stuff -create wxMac-%version%.sit wxWindows-%version%\*
67 Rem echo Invoking %stuffitcmd...
68 Rem start "StuffIt" /w %stuffitcmd%
69
70 echo wxMac archived.
71
72 goto end
73
74 :usage
75 echo DOS wxWindows distribution. Zips up wxMac.
76 echo.
77 echo "Usage: zipwxmac"
78
79 :end