hdf5/examples
David Young 2dd5bbfe16 Merge pull request #1984 in HDFFV/hdf5 from ~DYOUNG/netbsd:develop to develop
* 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 `==`.
2019-11-05 15:36:09 -06:00
..
Attributes.txt [svn-r14218] Description: 2007-10-30 13:13:48 -05:00
CMakeLists.txt Add new H5R API that abstracts object, region and attribute reference types 2019-10-08 14:30:24 -05:00
CMakeTests.cmake HDFFV-10529 Update CMake tests to use test fixtures 2019-07-23 16:24:56 -05:00
h5_attribute.c H5O_info fixes for java and examples 2018-05-31 16:09:48 -05:00
h5_chunk_read.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_cmprss.c Fixed misc Warnings flagged by VS2017. 2017-11-26 18:13:18 -08:00
h5_compound.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_crtatt.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_crtdat.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_crtgrp.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_crtgrpar.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_crtgrpd.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_drivers.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_dtransform.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_elink_unix2win.c Add API context interface and use it throughout the library. 2018-03-15 16:54:30 -05:00
h5_extend_write.c Merge reconciliation and VFD test fixes 2019-08-04 15:19:51 -05:00
h5_extend.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_extlink.c Squashed commit of private branch changes to support stackable VOL plugins. 2018-10-24 23:52:47 -05:00
h5_group.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_interm_group.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_mount.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_rdwt.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_read.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_ref2reg_deprec.c Add new H5R API that abstracts object, region and attribute reference types 2019-10-08 14:30:24 -05:00
h5_ref_compat.c Add new H5R API that abstracts object, region and attribute reference types 2019-10-08 14:30:24 -05:00
h5_ref_extern.c Add new H5R API that abstracts object, region and attribute reference types 2019-10-08 14:30:24 -05:00
h5_reference_deprec.c Add new H5R API that abstracts object, region and attribute reference types 2019-10-08 14:30:24 -05:00
h5_select.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_shared_mesg.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_subset.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-eiger.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-exc.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-exclim.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-percival-unlim-maxmin.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-percival-unlim.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-percival.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds-simpleIO.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_vds.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
h5_write.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
Makefile.am Merge pull request #1984 in HDFFV/hdf5 from ~DYOUNG/netbsd:develop to develop 2019-11-05 15:36:09 -06:00
ph5example.c Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
README [svn-r30243] Correct spelling 2016-08-01 13:23:09 -05:00
run-all-ex.sh Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00
run-c-ex.sh.in Merge pull request #1984 in HDFFV/hdf5 from ~DYOUNG/netbsd:develop to develop 2019-11-05 15:36:09 -06:00
testh5cc.sh.in Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10 2017-04-25 16:05:36 -05:00

                               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.