summaryrefslogtreecommitdiffstats
path: root/hl/examples
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-10-03 18:26:35 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-10-03 21:01:40 (GMT)
commit7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04 (patch)
tree54b9a00d4b92e73fb0cf496f8b63d179e2bbdc5c /hl/examples
parent6083b740ad585610300bb60e1456ab33d636ac6f (diff)
downloadhdf5-7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04.zip
hdf5-7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04.tar.gz
hdf5-7bb8d071c6b4b6fecc84eda4982cab6b86f9ff04.tar.bz2
Under the examples directories, always find the installed HDF5
executables and scripts using @prefix@ instead of a relative path, because the number of ../ in the relative path will be different on NetBSD than on other systems. Examples on NetBSD are installed at ${prefix}/share/examples/hdf5/ instead of at ${prefix}/share/hdf5_examples/, by convention. It may be the same on other BSDs, I'm not sure.
Diffstat (limited to 'hl/examples')
-rw-r--r--hl/examples/run-hlc-ex.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/examples/run-hlc-ex.sh.in b/hl/examples/run-hlc-ex.sh.in
index f51b165..b12955f 100644
--- a/hl/examples/run-hlc-ex.sh.in
+++ b/hl/examples/run-hlc-ex.sh.in
@@ -31,7 +31,7 @@ EXIT_FAILURE=1
# Where the tool is installed.
# default is relative path to installed location of the tools
-prefix="${prefix:-../../../..}"
+prefix="${prefix:-@prefix@}"
PARALLEL=@PARALLEL@ # Am I in parallel mode?
AR="@AR@"
RANLIB="@RANLIB@"