diff options
author | Robb Matzke <matzke@llnl.gov> | 2001-05-09 20:34:34 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 2001-05-09 20:34:34 (GMT) |
commit | b490fc52c9dc51f92b688143d199622326d8e76a (patch) | |
tree | e40285d8c5eb27a7ffc435d839fbadac06cc97ba /bin | |
parent | 0ab7cc82f00382c4e497a52fbf524d40642cc7e6 (diff) | |
download | hdf5-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')
-rwxr-xr-x | bin/h5vers | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 { |