]>
Commit | Line | Data |
---|---|---|
1c6fb09f JS |
1 | @echo off |
2 | rem Zip up a patch file | |
1c6fb09f | 3 | |
9ed42c2d JS |
4 | if "%wxwin%" == "" goto usage |
5 | ||
6 | set src=%wxwin% | |
7 | set dest=%src%\deliver | |
8 | ||
9 | Rem Set this to the required wxWindows version | |
10 | set wxversion=2.3.2 | |
1c6fb09f | 11 | Rem Set this to the required patch version |
f6bcfd97 | 12 | set version=01 |
1c6fb09f | 13 | |
9ed42c2d JS |
14 | set patchname=wxWindows-%wxversion%-patch-%version%.zip |
15 | ||
1c6fb09f JS |
16 | if "%src" == "" goto usage |
17 | if "%dest" == "" goto usage | |
9ed42c2d | 18 | echo About to create %dest%\%patchname% |
1c6fb09f JS |
19 | echo From %src |
20 | echo To %dest | |
1c6fb09f JS |
21 | echo CTRL-C if this is not correct. |
22 | pause | |
23 | ||
9ed42c2d | 24 | erase /Q /E %dest%\wxWindows-*-patch*.zip |
1c6fb09f | 25 | |
9ed42c2d | 26 | cd %src% |
1c6fb09f JS |
27 | echo Zipping... |
28 | ||
9ed42c2d | 29 | zip32 -@ %dest%\%patchname% < %src%\distrib\msw\patch.rsp |
1c6fb09f JS |
30 | echo wxWindows patch archived. |
31 | ||
32 | cd %dest | |
33 | ||
34 | goto end | |
35 | ||
36 | :usage | |
9ed42c2d | 37 | echo wxWindows patch distribution. |
1c6fb09f JS |
38 | echo. |
39 | echo Usage: zippatch | |
9ed42c2d | 40 | echo You must set WXWIN appropriately before calling this script. |
1c6fb09f JS |
41 | |
42 | :end |