summaryrefslogtreecommitdiffstats
path: root/windows/hdf5bt.BAT
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2009-10-22 21:23:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2009-10-22 21:23:59 (GMT)
commit5d27012937307b5027ae28d17715b12ea959cc29 (patch)
tree479538b56d79dae19dccdb295c85822872482d67 /windows/hdf5bt.BAT
parent3916f4ef4d59da0d8939ec06dcd6dc5079c2cc70 (diff)
downloadhdf5-5d27012937307b5027ae28d17715b12ea959cc29.zip
hdf5-5d27012937307b5027ae28d17715b12ea959cc29.tar.gz
hdf5-5d27012937307b5027ae28d17715b12ea959cc29.tar.bz2
[svn-r17726] Updated the errorlevel checking for better error handling in the windows batch files.
Diffstat (limited to 'windows/hdf5bt.BAT')
-rwxr-xr-xwindows/hdf5bt.BAT10
1 files changed, 5 insertions, 5 deletions
diff --git a/windows/hdf5bt.BAT b/windows/hdf5bt.BAT
index 5539ce0..13a0671 100755
--- a/windows/hdf5bt.BAT
+++ b/windows/hdf5bt.BAT
@@ -223,8 +223,8 @@ rem This is where the magic happens
:main
call :parse_params %*
- if %errorlevel% neq 0 (
- if !errorlevel! equ 1 (
+ if not errorlevel 0 (
+ if errorlevel 1 (
rem This isn't an error case-- this means /? was specified. Simply
rem quit.
goto end
@@ -237,7 +237,7 @@ rem This is where the magic happens
)
call :setup
- if %errorlevel% neq 0 (
+ if not errorlevel 0 (
echo.Error setting up hdf5bt environment!
goto error
)
@@ -248,13 +248,13 @@ rem This is where the magic happens
echo.
call :build
- if %errorlevel% neq 0 (
+ if not errorlevel (
echo.Error building HDF5 libraries!
goto error
)
call :test
- if %errorlevel% neq 0 (
+ if not errorlevel 0 (
echo.Error testing HDF5 libraries!
goto error
)