summaryrefslogtreecommitdiffstats
path: root/test/testcheck_version.sh.in
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-06-06 19:36:44 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-06-06 19:36:44 (GMT)
commitde9491e3651350969b2a75c602984a3786656dcb (patch)
treee05eeec195ede16a5c41b9db9974561fb57b4206 /test/testcheck_version.sh.in
parentf7bc306c19a3bd8f9a31a78d81a7bb5160bbbaf8 (diff)
downloadhdf5-de9491e3651350969b2a75c602984a3786656dcb.zip
hdf5-de9491e3651350969b2a75c602984a3786656dcb.tar.gz
hdf5-de9491e3651350969b2a75c602984a3786656dcb.tar.bz2
Add flags from config/clang-warnings/*general files to H5 C and CXX flags for all versions of Clang and Clang++ compilers.
Switched from cut to awk in testcheck_version.sh.in to avoid dependence on tab vs. " " in version definitions in H5public.h.
Diffstat (limited to 'test/testcheck_version.sh.in')
-rw-r--r--test/testcheck_version.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testcheck_version.sh.in b/test/testcheck_version.sh.in
index 836170d..0c2c4cd 100644
--- a/test/testcheck_version.sh.in
+++ b/test/testcheck_version.sh.in
@@ -216,9 +216,9 @@ h5libsettings=../src/libhdf5.settings
PURPOSE
# Figure out library version numbers from the header file.
-h5versmajor=`grep '#define H5_VERS_MAJOR' $srcdir/../src/H5public.h | cut -f2`
-h5versminor=`grep '#define H5_VERS_MINOR' $srcdir/../src/H5public.h | cut -f2`
-h5versrelease=`grep '#define H5_VERS_RELEASE' $srcdir/../src/H5public.h | cut -f2`
+h5versmajor=`grep '#define H5_VERS_MAJOR' $srcdir/../src/H5public.h | awk '{print $3}'`
+h5versminor=`grep '#define H5_VERS_MINOR' $srcdir/../src/H5public.h | awk '{print $3}'`
+h5versrelease=`grep '#define H5_VERS_RELEASE' $srcdir/../src/H5public.h | awk '{print $3}'`
DEBUGPRINT $h5versmajor.$h5versminor.$h5versrelease
case "$h5versmajor$h5versminor$h5versrelease" in
[0-9]*) # good. noop.