summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2008-11-19 19:30:29 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2008-11-19 19:30:29 (GMT)
commit0c72ceea96fd4ca2a7ee716a9f7e720c9114feed (patch)
treea48a6ac7c735b9001b220a93c7a77cde74ed25a9 /bin
parent5d115960b6386b311926f836f9bb27fc0fc2bbb2 (diff)
downloadhdf5-0c72ceea96fd4ca2a7ee716a9f7e720c9114feed.zip
hdf5-0c72ceea96fd4ca2a7ee716a9f7e720c9114feed.tar.gz
hdf5-0c72ceea96fd4ca2a7ee716a9f7e720c9114feed.tar.bz2
[svn-r16105] Bug fix:
h5vers script overwrote the value for windows file; fixed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/h5vers10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/h5vers b/bin/h5vers
index 1b5721c..a216577 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -192,9 +192,9 @@ my $H5PUBCONF = $file;
$H5PUBCONF =~ s/[^\/]*$/..\/windows\/src\/H5pubconf.h/;
die "unable to read file: $H5PUBCONF\n" unless -r $file;
# vms/src/h5pubconf.h
-my $H5PUBCONF = $file;
-$H5PUBCONF =~ s/[^\/]*$/..\/vms\/src\/h5pubconf.h/;
-die "unable to read file: $H5PUBCONF\n" unless -r $file;
+my $H5VMSPUBCONF = $file;
+$H5VMSPUBCONF =~ s/[^\/]*$/..\/vms\/src\/h5pubconf.h/;
+die "unable to read file: $H5VMSPUBCONF\n" unless -r $file;
# Get the current version number.
open FILE, $file or die "unable to open $file: $!\n";
@@ -243,6 +243,7 @@ if ($set) {
$RELEASE = "";
$CONFIGURE = "";
$H5PUBCONF = "";
+ $H5VMSPUBCONF = "";
$LT_VERS = "";
@newver = @curver;
}
@@ -394,6 +395,9 @@ sub gen_h5pubconf {
# Update the Windows-maintained H5pubconf.h file
gen_h5pubconf("HDF5", $H5PUBCONF, @newver) if $H5PUBCONF;
+# Update the VMS-maintained h5pubconf.h file
+gen_h5pubconf("HDF5", $H5VMSPUBCONF, @newver) if $H5VMSPUBCONF;
+
# Print the new version number
if ($verbose) {
printf("version %d.%d release %d%s\n", @newver[0,1,2],