summaryrefslogtreecommitdiffstats
path: root/bin/h5vers
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2001-05-09 20:34:34 (GMT)
committerRobb Matzke <matzke@llnl.gov>2001-05-09 20:34:34 (GMT)
commitb490fc52c9dc51f92b688143d199622326d8e76a (patch)
treee40285d8c5eb27a7ffc435d839fbadac06cc97ba /bin/h5vers
parent0ab7cc82f00382c4e497a52fbf524d40642cc7e6 (diff)
downloadhdf5-b490fc52c9dc51f92b688143d199622326d8e76a.zip
hdf5-b490fc52c9dc51f92b688143d199622326d8e76a.tar.gz
hdf5-b490fc52c9dc51f92b688143d199622326d8e76a.tar.bz2
[svn-r3896] ./hdf5/bin/h5vers
Implemented the string version number stuff for Albert. 2001-05-09 16:21:37 Robb Matzke <matzke@llnl.gov> * setvers: Adjust definition of H5_VERS_INFO, which should be a #define for a string constant.
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-xbin/h5vers3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/h5vers b/bin/h5vers
index 3b7a1e7..5204f94 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -78,6 +78,9 @@ sub setvers {
$_[0] =~ s/^(\#\s*define\s+H5_VERS_MINOR\s+)\d+/$1$vers[1]/m;
$_[0] =~ s/^(\#\s*define\s+H5_VERS_RELEASE\s+)\d+/$1$vers[2]/m;
$_[0] =~ s/^(\#\s*define\s+H5_VERS_SUBRELEASE\s+\")[^\"]*/$1$vers[3]/m;
+ $_[0] =~ s/^(\#\s*define\s+H5_VERS_INFO\s+\")[^\"]*/
+ sprintf("%shdf5 version: %d.%d.%d%s%s", $1, @vers[0,1,2],
+ $vers[3]?"-":"", $vers[3])/me;
}
sub usage {