diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-06 00:08:40 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-06 00:08:40 (GMT) |
commit | 734b00677193a7076369cd67cfad50ccb7c2d84b (patch) | |
tree | 9418e566ea74b99fac94b4c95cc5afc93f079271 | |
parent | ea5d6e87927bb729c748b95062bd42fbd3e4c784 (diff) | |
download | hdf5-734b00677193a7076369cd67cfad50ccb7c2d84b.zip hdf5-734b00677193a7076369cd67cfad50ccb7c2d84b.tar.gz hdf5-734b00677193a7076369cd67cfad50ccb7c2d84b.tar.bz2 |
[svn-r17594] Bug fix:
Release would leave behind an Makefile even if it did not exist before.
Fixed by restoring only the pre-existed Makefile.
Tested: Jam.
-rwxr-xr-x | bin/release | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/release b/bin/release index 11755ff..a820771 100755 --- a/bin/release +++ b/bin/release @@ -188,7 +188,8 @@ grep '^\.' MANIFEST | grep -v _DO_NOT_DISTRIBUTE_ >$MANIFEST # Prepare the source tree for a release. ln -s `pwd` $tmpdir/$HDF5_VERS || exit 1 -mv Makefile $tmpdir/Makefile.x 2>/dev/null #might fail +# Save a backup copy of Makefile if exists. +test -f Makefile && mv Makefile $tmpdir/Makefile.x cp -p Makefile.dist Makefile # Update README.txt and release_docs/RELEASE.txt with release information in @@ -240,7 +241,8 @@ done # Copy the RELEASE.txt to the release area. cp release_docs/RELEASE.txt $DEST/$HDF5_VERS-RELEASE.txt -# Restore previous Makefile if existed. +# Remove distributed Makefile and restore previous Makefile if existed. +rm -f Makefile test -f $tmpdir/Makefile.x && mv $tmpdir/Makefile.x Makefile # Restore OLD version information, then no need for trap. |