summaryrefslogtreecommitdiffstats
path: root/bin/h5vers
diff options
context:
space:
mode:
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-xbin/h5vers14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/h5vers b/bin/h5vers
index a72895c..d564d47 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -366,7 +366,7 @@ if ($HDF5CONFIGCMAKE) {
write_file($HDF5CONFIGCMAKE, $data);
}
-# Update the java/src/hdf/hdflib/H5.java file
+# Update the java/src/hdf/hdf5lib/H5.java file
if ($H5_JAVA) {
my $data = read_file($H5_JAVA);
# my $sub_rel_ver_str = "";
@@ -375,11 +375,11 @@ if ($H5_JAVA) {
? sprintf("\"%s\"", "")
: sprintf("\"%s\"", "-".$newver[3].", currently under development")
);
- my $version_string1 = sprintf("\"%d.%d.%d\"", @newver[0,1,2]);
- my $version_string2 = sprintf("\"%d, %d, %d\"", @newver[0,1,2]);
+ my $version_string1 = sprintf("%d.%d.%d", @newver[0,1,2]);
+ my $version_string2 = sprintf("%d, %d, %d", @newver[0,1,2]);
- $data =~ s/ * \@version HDF5 .* <BR>/ * \@version HDF5 $version_string1 <BR>/;
- $data =~ s/ public final static int LIB_VERSION\[\] = { \d*, \d*, \d* };/ public final static int LIB_VERSION\[\] = { $version_string2 };/;
+ $data =~ s/\@version HDF5 .* <BR>/\@version HDF5 $version_string1 <BR>/;
+ $data =~ s/ public final static int LIB_VERSION\[\] = { \d*, \d*, \d* };/ public final static int LIB_VERSION[] = { $version_string2 };/;
write_file($H5_JAVA, $data);
}
@@ -393,8 +393,8 @@ if ($TESTH5_JAVA) {
? sprintf("\"%s\"", "")
: sprintf("\"%s\"", "-".$newver[3].", currently under development")
);
- my $version_string1 = sprintf("\"%d, %d, %d\"", @newver[0,1,2]);
- my $version_string2 = sprintf("\"int majnum = %d, minnum = %d, relnum = %d\"", @newver[0,1,2]);
+ my $version_string1 = sprintf("%d, %d, %d", @newver[0,1,2]);
+ my $version_string2 = sprintf("int majnum = %d, minnum = %d, relnum = %d", @newver[0,1,2]);
$data =~ s/ int libversion\[\] = { .* };/ int libversion\[\] = { $version_string1 };/;
$data =~ s/ int majnum = \d*, minnum = \d*, relnum = \d*;/ $version_string2;/;