]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/msw/zippatch.bat
added include/msvc/wx/setup.h
[wxWidgets.git] / distrib / msw / zippatch.bat
index a0aaa238559cf06e291f20b84d209392c3398187..5ddf7f096572aaeee338fa4980990490827587b4 100755 (executable)
@@ -1,36 +1,42 @@
 @echo off
 rem Zip up a patch file
-set src=%wxwin
-set dest=%src\deliver
-set wise=0
 
+if "%wxwin%" == "" goto usage
+
+set src=%wxwin%
+set dest=%src%\deliver
+
+Rem Set this to the required wxWidgets version
+set wxversion=2.3.3
 Rem Set this to the required patch version
-set version=02
+set version=01
+
+set patchname=wxWidgets-%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%\wxWidgets-*-patch*.zip
 
-cd %src
+cd %src%
 echo Zipping...
 
-zip32 -@ %dest\patch%version%.zip < %src\distrib\msw\patch.rsp
-echo wxWindows patch archived.
+zip32 -@ %dest%\%patchname% < %src%\distrib\msw\patch.rsp
+echo wxWidgets patch archived.
 
 cd %dest
 
 goto end
 
 :usage
-echo DOS wxWindows patch distribution.
+echo wxWidgets patch distribution.
 echo.
 echo Usage: zippatch
+echo You must set WXWIN appropriately before calling this script.
 
 :end