mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
2dd5bbfe16
* commit '0b721858e46a317c370a24115032d5be41688f67': Make these scripts relocatable again: derive a relative path for the original installation prefix from the examples prefix. Use that relative path to locate the current installation prefix, always. Fall back to an absolute installation prefix if the relative path cannot be derived. Get the path to prefix right: needs a ../ to back out of subdirectory c/. Make this script relocatable again: derive a relative path for the original installation prefix from the examples prefix. Use that relative path to locate the current installation prefix, always. Fall back to an absolute installation prefix if the relative path cannot be derived. Let us override the examples directory using --with-examplesdir=DIR. This is handy for NetBSD where HDF5 examples are installed by convention in $prefix/share/examples/hdf5/ rather than in ${prefix}/share/hdf5_examples/, which is the HDF5 default. Follow longstanding execv convention for compatibility with NetBSD. 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. Make the HDF5 configure script grok NetBSD. For portability, insulate the HDF5 library from some system macros. Not every system has perl installed in /usr/bin/, so change the shebang (#!) line to `/usr/bin/env perl` to locate perl on the PATH. For portability, use the POSIX sh(1) string-comparison operator `=` instead of `==`. |
||
---|---|---|
.. | ||
Attributes.txt | ||
CMakeLists.txt | ||
CMakeTests.cmake | ||
h5_attribute.c | ||
h5_chunk_read.c | ||
h5_cmprss.c | ||
h5_compound.c | ||
h5_crtatt.c | ||
h5_crtdat.c | ||
h5_crtgrp.c | ||
h5_crtgrpar.c | ||
h5_crtgrpd.c | ||
h5_drivers.c | ||
h5_dtransform.c | ||
h5_elink_unix2win.c | ||
h5_extend_write.c | ||
h5_extend.c | ||
h5_extlink.c | ||
h5_group.c | ||
h5_interm_group.c | ||
h5_mount.c | ||
h5_rdwt.c | ||
h5_read.c | ||
h5_ref2reg_deprec.c | ||
h5_ref_compat.c | ||
h5_ref_extern.c | ||
h5_reference_deprec.c | ||
h5_select.c | ||
h5_shared_mesg.c | ||
h5_subset.c | ||
h5_vds-eiger.c | ||
h5_vds-exc.c | ||
h5_vds-exclim.c | ||
h5_vds-percival-unlim-maxmin.c | ||
h5_vds-percival-unlim.c | ||
h5_vds-percival.c | ||
h5_vds-simpleIO.c | ||
h5_vds.c | ||
h5_write.c | ||
Makefile.am | ||
ph5example.c | ||
README | ||
run-all-ex.sh | ||
run-c-ex.sh.in | ||
testh5cc.sh.in |
HDF5 Examples This directory contains example programs for the installed APIs and scripts to compile and run them. Examples in the c and hl/c subdirectories are always installed, and those in fortran, hl/fortran, c++ and hl/c++ will be installed when fortran or c++ are enabled. Running the run-all-ex.sh script in this directory will run the scripts and in turn the examples in all the subdirectories where examples are installed. The scripts can also be run individually. The appropriate compile scripts in the bin directory for this install will be used by default to compile and link the example programs. Note that h5redeploy must be run if these binaries are copied or extracted in a directory other than the one where they were initially installed. Compile scripts from other locations can be used by setting an environment variable prefix to the path of the directory containing the bin directory with the compile scripts h5cc, h5fc, etc. For example, export prefix=/usr/local/hdf5 to use h5cc, h5fc, etc. in /usr/local/hdf5/bin.