]>
Commit | Line | Data |
---|---|---|
942e0678 JS |
1 | @echo off |
2 | rem Zip up a minimal wxMSW source 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.3 | |
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 Minimal wxMSW distribution: | |
16 | echo From %src | |
17 | echo To %dest | |
18 | echo CTRL-C if this is not correct. | |
19 | pause | |
20 | ||
21 | erase %dest\wxMSW-%VERSION%-Minimal*.zip | |
22 | ||
23 | if not direxist %dest mkdir %dest | |
77ffb593 | 24 | if direxist %dest%\wxWidgets-%version% erase /sxyz %dest%\wxWidgets-%version% |
942e0678 JS |
25 | |
26 | echo Zipping wxMSW-Minimal distribution | |
27 | ||
28 | cd %src% | |
29 | ||
30 | zip32 -@ %dest%\wxMSW-%version%-Minimal.zip < %src%\distrib\msw\msw_minimal.rsp | |
31 | zip32 -u -@ %dest%\wxMSW-%version%-Minimal.zip < %src%\distrib\msw\jpeg.rsp | |
32 | zip32 -u -@ %dest%\wxMSW-%version%-Minimal.zip < %src%\distrib\msw\png.rsp | |
33 | zip32 -u -@ %dest%\wxMSW-%version%-Minimal.zip < %src%\distrib\msw\zlib.rsp | |
34 | zip32 -u -@ %dest%\wxMSW-%version%-Minimal.zip < %src%\distrib\msw\tiff.rsp | |
35 | ||
77ffb593 | 36 | if direxist %dest%\wxWidgets-%version% erase /sxyz %dest%\wxWidgets-%version% |
942e0678 | 37 | |
77ffb593 JS |
38 | mkdir %dest%\wxWidgets-%version% |
39 | cd %dest%\wxWidgets-%version% | |
942e0678 JS |
40 | |
41 | unzip32 ..\wxMSW-%version%-Minimal.zip | |
42 | erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf | |
43 | ||
44 | echo Deleting some redundant files | |
45 | ||
46 | erase /XY src\generic\treectrlg.cpp include\wx\generic\treectrlg.cpp | |
47 | erase /XY src\generic\listctrl.cpp include\wx\generic\listctrl.cpp | |
48 | Rem erase /XY src\generic\prop*.cpp include\wx\generic\prop*.cpp | |
49 | erase /XY src\generic\printps.cpp src\generic\fontdlgg.cpp src\generic\accel.cpp src\generic\colrdlgg.cpp | |
50 | erase /XY include\wx\generic\printps.cpp include\wx\generic\fontdlgg.h include\wx\generic\accel.h include\wx\generic\colrdlgg.h | |
51 | erase /XY include\wx\generic\mdig.h src\generic\mdig.cpp | |
52 | erase /XY include\wx\*cw*.h | |
53 | ||
942e0678 JS |
54 | cd %dest% |
55 | ||
56 | erase wxMSW-%version%-Minimal.zip | |
77ffb593 | 57 | zip32 -r wxMSW-%version%-Minimal.zip wxWidgets-%version%/* |
942e0678 JS |
58 | |
59 | echo wxMSW-Minimal archived. | |
60 | ||
61 | cd %src%\distrib\msw | |
62 | ||
63 | goto end | |
64 | ||
65 | :usage | |
77ffb593 | 66 | echo DOS wxWidgets distribution. Zips up wxMSW-Minimal. |
942e0678 JS |
67 | echo. |
68 | echo "Usage: zipwinminimal.bat" | |
69 | ||
70 | :end |