From 45200696badc73da917cd2b0cc90e59591c83fca Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 29 Jan 2017 22:35:11 +0100 Subject: [PATCH] Allow to process multiple files at once Signed-off-by: Sven Strickroth --- doc/images/adjustimages.bat | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/images/adjustimages.bat b/doc/images/adjustimages.bat index c8d8dffee..aa905ea9d 100644 --- a/doc/images/adjustimages.bat +++ b/doc/images/adjustimages.bat @@ -3,16 +3,21 @@ :: This script compresses all .png images. :: :: By default all images in all languages will be handled. -:: You can specify a group of files to check using the first -:: parameter, e.g. +:: You can specify several distinct files or a group of files to +:: process using parameters, e.g. :: adjustimages en\Rev*.png +:: adjustimages en\AboutDlg.png en\BrowseRef.png +:: adjustimages en\AboutDlg.png en\BrowseRef.png en\Rev*.png :: :: ============================================================ :: :: if '%1' == '' goto :DoDefault +:NextParam for %%? in (%1) do Call :ProcAdjustFile %%? -endlocal & goto:EOF +shift +if '%1' == '' endlocal & goto:EOF +goto :NextParam :: :DoDefault for %%? in (en\*.png) do Call :ProcAdjustFile %%? -- 2.11.4.GIT