summaryrefslogtreecommitdiffstats
path: root/bin/release
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/release
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/release')
-rwxr-xr-xbin/release13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/release b/bin/release
index 7f6a8f6..333c3c6 100755
--- a/bin/release
+++ b/bin/release
@@ -115,7 +115,9 @@ RESTORE_VERSION()
{
if [ X-${VERS_OLD} != X- ]; then
echo restoring version information back to $VERS_OLD
- bin/h5vers -s $VERS_OLD
+ rm -f config/lt_vers.am
+ cp $tmpdir/lt_vers.am config/lt_vers.am
+ bin/h5vers -s $VERS_OLD > vers_out
VERS_OLD=
fi
}
@@ -170,6 +172,9 @@ trap RESTORE_VERSION 0
if [ X$pmode = Xyes ]; then
VERS_OLD=$VERS
+ # Copy old version of config/lt_vers.am, since it's hard to
+ # "undo" changes to it.
+ cp config/lt_vers.am $tmpdir
# Set version information to m.n.r-of$today.
# (h5vers does not correctly handle just m.n.r-$today.)
VERS=`echo $VERS | sed -e s/-.*//`-of$today
@@ -253,13 +258,13 @@ cp release_docs/RELEASE.txt $DEST/$HDF5_VERS-RELEASE.txt
# Restore previous Makefile if existed.
test -f $tmpdir/Makefile.x && mv $tmpdir/Makefile.x Makefile
-# Remove temporary things
-rm -rf $tmpdir
-
# Restore OLD version information, then no need for trap.
if [ X$pmode = Xyes ]; then
RESTORE_VERSION
trap 0
fi
+# Remove temporary things
+#rm -rf $tmpdir
+
exit 0