summaryrefslogtreecommitdiffstats
path: root/examples/run-all-ex.sh
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2010-10-04 17:15:30 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2010-10-04 17:15:30 (GMT)
commit155b00d8ff1b9274fefebced5954bfb0f647b4af (patch)
tree27a70db09d11d725429d701e9f9eeccc98c944d3 /examples/run-all-ex.sh
parentdc4756fbf47d8fe84472269f24cedc16c8093c48 (diff)
downloadhdf5-155b00d8ff1b9274fefebced5954bfb0f647b4af.zip
hdf5-155b00d8ff1b9274fefebced5954bfb0f647b4af.tar.gz
hdf5-155b00d8ff1b9274fefebced5954bfb0f647b4af.tar.bz2
[svn-r19506] Bring changes from revisions 19408, 19421, and 19442 from branches/hdf5_1_8 to trunk. These revisions reorganize the compile scripts using h5cc.in, h5fc.in, and h5c++.in, add checks for installed examples to the scripts that run them after installation, and add DESTDIR for install as needed for RPMs.
Tested on amani, heiwa and jam by h5committest and with CYGWIN.
Diffstat (limited to 'examples/run-all-ex.sh')
-rwxr-xr-xexamples/run-all-ex.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/run-all-ex.sh b/examples/run-all-ex.sh
index e96b86f..6837c7e 100755
--- a/examples/run-all-ex.sh
+++ b/examples/run-all-ex.sh
@@ -26,12 +26,18 @@
if (echo "Run c examples" && \
(cd c; sh ./run-c-ex.sh) && \
- echo "Run fortran examples" && \
- (cd fortran; sh ./run-fortran-ex.sh) && \
- echo "Run c++ examples" && \
- (cd c++; sh ./run-c++-ex.sh) && \
- echo "Run hl examples." && \
- (cd hl; sh ./run-hl-ex.sh)); then
+ (if test -d fortran; then
+ echo "Run fortran examples"
+ cd fortran; sh ./run-fortran-ex.sh
+ fi)
+ (if test -d c++; then
+ echo "Run c++ examples"
+ cd c++; sh ./run-c++-ex.sh
+ fi)
+ (if test -d hl; then
+ echo "Run hl examples."
+ cd hl; sh ./run-hl-ex.sh
+ fi)); then
echo "Done"
exit 0
else