summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-04-22 20:05:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-04-22 20:05:32 (GMT)
commit6d782bc926c96b0b9d7bcfad2aa6e8cd98ec2eef (patch)
treec8cfdfb34116104601880f00da5cb17dd130838f
parent6c528935ffab3e80de63a8ba5bff0c616e95618a (diff)
downloadhdf5-6d782bc926c96b0b9d7bcfad2aa6e8cd98ec2eef.zip
hdf5-6d782bc926c96b0b9d7bcfad2aa6e8cd98ec2eef.tar.gz
hdf5-6d782bc926c96b0b9d7bcfad2aa6e8cd98ec2eef.tar.bz2
[svn-r16840] Bug fix:
If the AR command has embedded shell separators such as the case of "AR = ar -X 64", $AR ends up as a blank. Solution: Put quotes around the command substitution string to protect against embedded separators. Applied the same to both AR and RANLIB assignments. Tested: At Up (AIX 5.3) only because that was where I discovered the error when AR is ar -X 64
-rwxr-xr-xc++/examples/testh5c++.sh.in4
-rwxr-xr-xexamples/testh5cc.sh.in4
-rwxr-xr-xfortran/examples/testh5fc.sh.in4
3 files changed, 6 insertions, 6 deletions
diff --git a/c++/examples/testh5c++.sh.in b/c++/examples/testh5c++.sh.in
index c9474bf..2b7bbfe 100755
--- a/c++/examples/testh5c++.sh.in
+++ b/c++/examples/testh5c++.sh.in
@@ -22,8 +22,8 @@
# Initializations
# Where the tool is installed.
prefix="${prefix:-@prefix@}"
-AR=@AR@
-RANLIB=@RANLIB@
+AR="@AR@"
+RANLIB="@RANLIB@"
H5TOOL="h5c++" # The tool name
H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
diff --git a/examples/testh5cc.sh.in b/examples/testh5cc.sh.in
index 5a0e0c3..f8ecf5f 100755
--- a/examples/testh5cc.sh.in
+++ b/examples/testh5cc.sh.in
@@ -25,8 +25,8 @@
# Where the tool is installed.
prefix="${prefix:-@prefix@}"
PARALLEL=@PARALLEL@ # Am I in parallel mode?
-AR=@AR@
-RANLIB=@RANLIB@
+AR="@AR@"
+RANLIB="@RANLIB@"
if [ "$PARALLEL" = no ]; then
H5TOOL="h5cc" # The tool name
else
diff --git a/fortran/examples/testh5fc.sh.in b/fortran/examples/testh5fc.sh.in
index 9f2d9bf..a25abbe 100755
--- a/fortran/examples/testh5fc.sh.in
+++ b/fortran/examples/testh5fc.sh.in
@@ -23,8 +23,8 @@
# Where the tool is installed.
prefix="${prefix:-@prefix@}"
PARALLEL=@PARALLEL@ # Am I in parallel mode?
-AR=@AR@
-RANLIB=@RANLIB@
+AR="@AR@"
+RANLIB="@RANLIB@"
if [ "$PARALLEL" = no ]; then
H5TOOL="h5fc" # The tool name
else