diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-10-01 08:42:33 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-10-01 08:42:33 +0000 |
commit | fdf84417b930dec65dbabe735ca984080079af6e (patch) | |
tree | 557379fa258c8654fc3d84bab363f4e03b5559ca /maintainer-scripts/gcc_release | |
parent | cc6312c1e8cc9254859557e613fccc447cea45e6 (diff) | |
download | gcc-fdf84417b930dec65dbabe735ca984080079af6e.zip gcc-fdf84417b930dec65dbabe735ca984080079af6e.tar.gz gcc-fdf84417b930dec65dbabe735ca984080079af6e.tar.bz2 |
gcc_release (build_sources): If trying to apply a tag that already exists, issue an error message and exit.
* gcc_release (build_sources): If trying to apply a tag that
already exists, issue an error message and exit.
From-SVN: r104854
Diffstat (limited to 'maintainer-scripts/gcc_release')
-rwxr-xr-x | maintainer-scripts/gcc_release | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 0c60cdb..6458ce1b 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -170,12 +170,19 @@ EOF EXPORTDATE="" if [ -n "${TAG}" ]; then inform "Tagging sources as ${TAG}" - # The -F option to CVS is intentionally not used below. If you - # need to retry a release, you will have to manually remove any - # existing tag. + EXPORTTAG="-r${TAG}" + # Try to check out a file using ${TAG}. If the command succeeds, + # then the sources have already been tagged. We don't want to + # overwrite an existing tag, so we don't want to use the "-F" + # option to "cvs rtag" below. So, if the tag already exists, + # issue an error message; the release manager can manually remove + # the tag if appropriate. + if ${CVS} export -d "`basename ${SOURCE_DIRECTORY}`" \ + "${EXPORTTAG}" gcc/ChangeLog; then + error "Tag ${TAG} already exists" + fi ${CVS} rtag -r ${CVSBRANCH} ${TAG} gcc || \ error "Could not tag sources" - EXPORTTAG="-r${TAG}" else if [ ${CVSBRANCH} != "HEAD" ]; then EXPORTTAG="-r${CVSBRANCH}" |