X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b8b0e7ca05ae2ea581601c4510f7c5704c22607..93c4157c6cf8603eaba7ebbbc3b1e7bd303d8241:/distrib/msw/zippatch.bat diff --git a/distrib/msw/zippatch.bat b/distrib/msw/zippatch.bat index 37742c7514..e9d300caec 100755 --- a/distrib/msw/zippatch.bat +++ b/distrib/msw/zippatch.bat @@ -1,28 +1,32 @@ @echo off rem Zip up a patch file -Rem m:\wx2 contains the latest version + any crucial patches -set src=m:\wx2 -set dest=%wxwin\deliver -set wise=0 +if "%wxwin%" == "" goto usage + +set src=%wxwin% +set dest=%src%\deliver + +Rem Set this to the required wxWindows version +set wxversion=2.3.2 Rem Set this to the required patch version -set version=03 +set version=01 + +set patchname=wxWindows-%wxversion%-patch-%version%.zip if "%src" == "" goto usage if "%dest" == "" goto usage -echo About to archive patch%version%.zip +echo About to create %dest%\%patchname% echo From %src echo To %dest -if "%wise" == "1" echo with WISE setup creation. echo CTRL-C if this is not correct. pause -erase %dest\patch*.zip +erase /Q /E %dest%\wxWindows-*-patch*.zip -cd %src +cd %src% echo Zipping... -zip32 -@ %dest\patch%version%.zip < %wxwin\distrib\msw\patch.rsp +zip32 -@ %dest%\%patchname% < %src%\distrib\msw\patch.rsp echo wxWindows patch archived. cd %dest @@ -30,8 +34,9 @@ cd %dest goto end :usage -echo DOS wxWindows patch distribution. +echo wxWindows patch distribution. echo. echo Usage: zippatch +echo You must set WXWIN appropriately before calling this script. :end