summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-04-06 15:38:31 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-04-06 15:38:31 (GMT)
commitff13a094b640f86ac9937cfa7e8b08a590a7acce (patch)
treedc9a6ff6b57aa1f2294710350a2c65d73a71bb7d
parentedeeb1c3d64a0d5f03b09d5370b2421eb2654932 (diff)
downloadhdf5-ff13a094b640f86ac9937cfa7e8b08a590a7acce.zip
hdf5-ff13a094b640f86ac9937cfa7e8b08a590a7acce.tar.gz
hdf5-ff13a094b640f86ac9937cfa7e8b08a590a7acce.tar.bz2
[svn-r13600] Purpose:
bug fix. Description: If a non-existing or empty source file is used with -c option, the script ended up doing nothing and exit 0--a false success. Changed code so that it would do compile and end in error. Also added an acknowledgement that the script is adapted from mpicc of MPICH. Platform tested: Kagiso (serial and PP).
-rwxr-xr-xtools/misc/h5cc.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in
index 0e0d99b..1ead951 100755
--- a/tools/misc/h5cc.in
+++ b/tools/misc/h5cc.in
@@ -14,6 +14,8 @@
# access to either file, you may request a copy from help@hdfgroup.org.
##
+# This tool is adapted from the mpicc command of the MPICH Software.
+
############################################################################
## ##
## Things You May Have to Modify: ##
@@ -235,6 +237,11 @@ for arg in $@ ; do
esac
done
+if test "$dash_c" = "yes" -a "$do_compile" = no -a "$do_link" = no ; then
+ # -c was specified. Force do_compile on.
+ do_compile=yes
+fi
+
if test "x$do_compile" = "xyes"; then
if test "x$dash_c" != "xyes"; then
compile_args="-c $compile_args"