From e1a266b72e46e3eb352b4751533585afb3aadf80 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 10 May 2001 10:02:00 -0500 Subject: [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. --- bin/release | 21 +++++++++++++++++---- 1 file 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 -- cgit v0.12