summaryrefslogtreecommitdiffstats
path: root/bin/h5vers
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-02-01 22:26:14 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-02-01 22:26:14 (GMT)
commit54956412967b86c64a58f775cf67573ca4a55bc1 (patch)
treef1485876407bca593cfd1122e5bc11e240efef38 /bin/h5vers
parent42d4edcb4a531ab7d890e1e74c92191477697f4c (diff)
downloadhdf5-54956412967b86c64a58f775cf67573ca4a55bc1.zip
hdf5-54956412967b86c64a58f775cf67573ca4a55bc1.tar.gz
hdf5-54956412967b86c64a58f775cf67573ca4a55bc1.tar.bz2
[svn-r11916] Purpose:
Bug fix in release script Description: release --private should create a release without changing the current version of the library. This wasn't working for the libtool version, which was getting bumped regardless. Solution: Fixed the release and h5vers scripts to leave the source directory unchanged when bin/release --private is run. Platforms tested: mir (changes to scripts only)
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-xbin/h5vers11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/h5vers b/bin/h5vers
index 9721f30..7facdf3 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -233,12 +233,18 @@ if ($set) {
@newver = @curver;
}
+# Note if the version increased or decreased
+my $version_increased="";
# Print a warning if the version got smaller (don't check annot field)
if ($newver[0]*1000000 + $newver[1]*1000 + $newver[2] <
$curver[0]*1000000 + $curver[1]*1000 + $curver[2]) {
printf STDERR "Warning: version decreased from %d.%d.%d to %d.%d.%d\n",
@curver[0,1,2], @newver[0,1,2];
}
+if ($newver[0]*1000000 + $newver[1]*1000 + $newver[2] >
+ $curver[0]*1000000 + $curver[1]*1000 + $curver[2]) {
+ $version_increased="true";
+}
# Update the version number if it changed.
if ($newver[0]!=$curver[0] ||
@@ -252,8 +258,9 @@ if ($newver[0]!=$curver[0] ||
close FILE;
}
-# Update the libtool shared library version in src/Makefile.am
-if ($LT_VERS) {
+# Update the libtool shared library version in src/Makefile.am if
+# the version number has increased.
+if ($LT_VERS && $version_increased) {
open FILE, $LT_VERS or die "$LT_VERS: $!\n";
my ($contentsy) = join "", <FILE>;
close FILE;