summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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 {