diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2012-05-01 22:09:11 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2012-05-01 22:09:11 (GMT) |
commit | af34693d8c102d2f260a33628b7f8838db7cc104 (patch) | |
tree | f39a41051e1fb18ada6a94973928bff941db744f | |
parent | 9a5073a8f3482f1ee257d48b05acbe5fd13a42b0 (diff) | |
download | hdf5-af34693d8c102d2f260a33628b7f8838db7cc104.zip hdf5-af34693d8c102d2f260a33628b7f8838db7cc104.tar.gz hdf5-af34693d8c102d2f260a33628b7f8838db7cc104.tar.bz2 |
[svn-r22329] Add examples/README file to be installed with examples.
It was in hdf5 v1.8.8, but not checked into the 1.8 branch.
:Text file only, but tested with h5committest.
-rw-r--r-- | MANIFEST | 2 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | examples/Makefile.am | 1 | ||||
-rw-r--r-- | examples/Makefile.in | 3 | ||||
-rw-r--r-- | examples/README | 17 |
5 files changed, 22 insertions, 3 deletions
@@ -132,7 +132,7 @@ ./examples/h5_shared_mesg.c ./examples/ph5example.c ./examples/testh5cc.sh.in - +./examples/README #------------------------------------------------------------------------------ @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 22259 2012-04-09 00:29:44Z hdftest . +# From configure.in Id: configure.in 22268 2012-04-09 19:39:33Z mamcgree . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for HDF5 1.8.10-snap0. # diff --git a/examples/Makefile.am b/examples/Makefile.am index 9ec6a85..a35d8ca 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -44,6 +44,7 @@ INSTALL_FILES = h5_write.c h5_read.c h5_extend_write.c h5_chunk_read.c \ INSTALL_SCRIPT_FILES = run-c-ex.sh INSTALL_TOP_SCRIPT_FILES = run-all-ex.sh +INSTALL_TOP_FILES = README # How to build examples, using installed version of h5cc if BUILD_PARALLEL_CONDITIONAL diff --git a/examples/Makefile.in b/examples/Makefile.in index 597e6de..774fea1 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -54,7 +54,7 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/run-c-ex.sh.in $(srcdir)/testh5cc.sh.in \ $(top_srcdir)/config/commence.am \ $(top_srcdir)/config/conclude.am \ @@ -382,6 +382,7 @@ INSTALL_FILES = h5_write.c h5_read.c h5_extend_write.c h5_chunk_read.c \ INSTALL_SCRIPT_FILES = run-c-ex.sh INSTALL_TOP_SCRIPT_FILES = run-all-ex.sh +INSTALL_TOP_FILES = README # The external link examples demonstrate how to use paths; they need # directories to be created to do this. diff --git a/examples/README b/examples/README new file mode 100644 index 0000000..0550b15 --- /dev/null +++ b/examples/README @@ -0,0 +1,17 @@ + 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 fortan, 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. |