summaryrefslogtreecommitdiffstats
path: root/windows/tools/h5repack/h5repack.bat
diff options
context:
space:
mode:
Diffstat (limited to 'windows/tools/h5repack/h5repack.bat')
-rw-r--r--windows/tools/h5repack/h5repack.bat14
1 files changed, 9 insertions, 5 deletions
diff --git a/windows/tools/h5repack/h5repack.bat b/windows/tools/h5repack/h5repack.bat
index 8d45115..ae97db4 100644
--- a/windows/tools/h5repack/h5repack.bat
+++ b/windows/tools/h5repack/h5repack.bat
@@ -117,7 +117,7 @@ rem was unavailable)
rem Call the h5diff tool
rem
:difftest
- %h5diff_bin% %* -q
+ %h5diff_bin% -q %*
if %errorlevel% neq 0 (
call :verify *FAILED* %*
set /a nerrors=!nerrors!+1
@@ -142,9 +142,13 @@ rem
rem We define %params% here because Windows `shift` command doesn't affect
rem the %* variable. --SJW 8/28/07
- set params=%*
- set params=%params: *=%
- %h5repack_bin% -i %infile% -o %outfile% %params%
+ if "%2"=="" (
+ set params=
+ ) else (
+ set params=%*
+ set params=!params:* =!
+ )
+ %h5repack_bin% %params% %infile% %outfile%
if %errorlevel% neq 0 (
call :testing *FAILED* %*
@@ -521,4 +525,4 @@ rem
popd
endlocal & exit /b %nerrors%
- \ No newline at end of file
+