summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-04-11 21:31:10 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-04-11 21:31:10 (GMT)
commite7a398d07453e24eee5681d73e0d6bcfb40af6c7 (patch)
tree38f372c1d5798039ea7cc951b68e0dfa7865bb9c /examples
parenta286af4e0fd4930da8e31d3b5335e6961380c365 (diff)
downloadhdf5-e7a398d07453e24eee5681d73e0d6bcfb40af6c7.zip
hdf5-e7a398d07453e24eee5681d73e0d6bcfb40af6c7.tar.gz
hdf5-e7a398d07453e24eee5681d73e0d6bcfb40af6c7.tar.bz2
[svn-r13646] Fortran/examples/testh5fc.sh.in:
Most fortran compilers do not support the Preprocessing -E option. Removed the tests for preprocessing only. examples/testh5cc.sh.in: c++/examples/testh5c++.sh.in: Updated comments and some cosmetic rearrangement. No substance changes. Tested platform: Copper, kagiso.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/testh5cc.sh.in19
1 files changed, 12 insertions, 7 deletions
diff --git a/examples/testh5cc.sh.in b/examples/testh5cc.sh.in
index 9a2c14d..68358a3 100755
--- a/examples/testh5cc.sh.in
+++ b/examples/testh5cc.sh.in
@@ -38,25 +38,30 @@ DIFF='diff -c'
nerrors=0
verbose=yes
+# setup my machine information.
+myos=`uname -s`
+myhostnama=`uname -n`
+
# The build (current) directory might be different than the source directory.
if test -z "$srcdir"; then
srcdir=.
fi
# Generate some source files and library for tests.
-hdf5main=${H5TOOL}_hdf5main.c
+suffix=c # source file suffix
+hdf5main=${H5TOOL}_hdf5main.$suffix
hdf5main_o=${H5TOOL}_hdf5main.o
-appmain=${H5TOOL}_appmain.c
+appmain=${H5TOOL}_appmain.$suffix
appmain_o=${H5TOOL}_appmain.o
-prog1=${H5TOOL}_prog1.c
+prog1=${H5TOOL}_prog1.$suffix
prog1_o=${H5TOOL}_prog1.o
-prog2=${H5TOOL}_prog2.c
+prog2=${H5TOOL}_prog2.$suffix
prog2_o=${H5TOOL}_prog2.o
applib=libapp${H5TOOL}.a
# short hands
temp_SRC="$hdf5main $appmain $prog1 $prog2"
-temp_OBJ=`echo $temp_SRC | sed -e 's/\.c/.o/g'`
+temp_OBJ=`echo $temp_SRC | sed -e "s/\.${suffix}/.o/g"`
temp_FILES="a.out *.h5 $applib"
# Generate appmain:
@@ -207,8 +212,8 @@ $RANLIB $applib
TOOLTEST $appmain $applib
TOOLTEST $appmain_o $applib
-# Just cpp, no compile, no link.
-echo "***"Just cpp, no compile, no link.
+# Just preprocess, no compile, no link.
+echo "***"Just preprocess, no compile, no link.
TOOLTEST -E $hdf5main
TOOLTEST -E $appmain $prog1 $prog2