summaryrefslogtreecommitdiffstats
path: root/bin/release
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-05-10 15:02:00 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-05-10 15:02:00 (GMT)
commite1a266b72e46e3eb352b4751533585afb3aadf80 (patch)
tree11b2c7d075254683213dd523cb2e4dcb1b6a7607 /bin/release
parent9c0f0b60dc9966bca73ab213ce33bba545035ea8 (diff)
downloadhdf5-e1a266b72e46e3eb352b4751533585afb3aadf80.zip
hdf5-e1a266b72e46e3eb352b4751533585afb3aadf80.tar.gz
hdf5-e1a266b72e46e3eb352b4751533585afb3aadf80.tar.bz2
[svn-r3904] Purpose:
new feature Description: Added feature to update RELEASE.txt with release information just like what happens to README. Make a copy of RELEASE.txt to accompany the tarball file(s). Also moved the umask command up to cover all files created on the fly. Platforms tested: eirene.
Diffstat (limited to 'bin/release')
-rwxr-xr-xbin/release21
1 files changed, 17 insertions, 4 deletions
diff --git a/bin/release b/bin/release
index 8eb651e..e5d61c9 100755
--- a/bin/release
+++ b/bin/release
@@ -99,11 +99,22 @@ test -h ../hdf5-$VERS && rm ../hdf5-$VERS
ln -s `pwd` ../hdf5-$VERS || exit 1
mv Makefile ../Makefile.x 2>/dev/null #might fail
cp -p Makefile.dist Makefile
-# synchronize the HISTORY and RELEASE files in the doc area
-cp HISTORY.txt RELEASE.txt doc/html/ADGuide/.
+
+# Update some files with release information.
+# Make sure new files are of the right access mode
+umask 0133
+# update README
echo "This is hdf5-$VERS released on `date`" >README.x
tail +2l README >>README.x
mv README.x README
+# update RELEASE.txt
+echo "HDF5 version $VERS released on `date`" >RELEASE.x
+tail +2l RELEASE.txt >>RELEASE.x
+mv RELEASE.x RELEASE.txt
+# synchronize the HISTORY and RELEASE files in the doc area
+cp HISTORY.txt RELEASE.txt doc/html/ADGuide/.
+
+# Create the tar file
test "$verbose" && echo " Running tar..." 1>&2
( \
cd ..; \
@@ -112,8 +123,6 @@ test "$verbose" && echo " Running tar..." 1>&2
)
# Compress
-# Make sure new files are of the right access mode
-umask 0133
for comp in $methods; do
case $comp in
tar)
@@ -130,6 +139,10 @@ for comp in $methods; do
esac
done
+# Copy the RELEASE.txt to the release area. Make it ended with
+# .txt to ensure easy display via web.
+cp RELEASE.txt $DEST/hdf5-$VERS-RELEASE.txt
+
# Remove temporary things
test -f ../Makefile.x && mv ../Makefile.x Makefile
rm -f $MANIFEST