diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-12-26 10:12:49 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-12-26 10:12:49 (GMT) |
commit | ac5945b412d3f7d8453f46cdd3da6ec45f18c3df (patch) | |
tree | 73fdc388b42ddaf4a29dd26b5587228fd894aaf0 /tools/misc/h5cc.in | |
parent | f40a245ce239b9597efa815d70d1d9f005fbafdc (diff) | |
download | hdf5-ac5945b412d3f7d8453f46cdd3da6ec45f18c3df.zip hdf5-ac5945b412d3f7d8453f46cdd3da6ec45f18c3df.tar.gz hdf5-ac5945b412d3f7d8453f46cdd3da6ec45f18c3df.tar.bz2 |
[svn-r18057] Bug fix: 1192
Description:
Fixed exit code (sometimes return code in Main) to follow the HDF5 standards.
Tested:
Jam, both serial and parallel.
Diffstat (limited to 'tools/misc/h5cc.in')
-rwxr-xr-x | tools/misc/h5cc.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in index 28f0dee..c274f3f 100755 --- a/tools/misc/h5cc.in +++ b/tools/misc/h5cc.in @@ -38,6 +38,10 @@ HL="@HL@" ## ## ############################################################################ +# Constants definitions +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + host_os="@host_os@" prog_name="`basename $0`" @@ -95,7 +99,7 @@ usage() { echo " HDF5_USE_SHLIB=[yes|no] - use shared or static version of the HDF5 library" echo " [default: no]" echo " " - exit 1 + exit $EXIT_FAILURE } # Show the configuration summary of the library recorded in the @@ -107,7 +111,7 @@ showconfigure() } # Main -status=0 +status=$EXIT_SUCCESS if test "$#" = "0"; then # No parameters specified, issue usage statement and exit. |