summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2008-11-19 19:22:27 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2008-11-19 19:22:27 (GMT)
commit2f03768888ed1922105f1e5c818e545d2ebfa13e (patch)
tree31ead7dc377b7ce089496588e2121ceab611272f /bin
parent96fd960606d61d61205dd51f14d50273583fbe6f (diff)
downloadhdf5-2f03768888ed1922105f1e5c818e545d2ebfa13e.zip
hdf5-2f03768888ed1922105f1e5c818e545d2ebfa13e.tar.gz
hdf5-2f03768888ed1922105f1e5c818e545d2ebfa13e.tar.bz2
[svn-r16104] 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 1cb2072..23e8185 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],