mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
cc6312c1e8
commit
fdf84417b9
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-01 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
* gcc_release (build_sources): If trying to apply a tag that
|
||||||
|
already exists, issue an error message and exit.
|
||||||
|
|
||||||
2005-09-30 Joseph S. Myers <joseph@codesourcery.com>
|
2005-09-30 Joseph S. Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
PR other/23693
|
PR other/23693
|
||||||
|
|
|
@ -170,12 +170,19 @@ EOF
|
||||||
EXPORTDATE=""
|
EXPORTDATE=""
|
||||||
if [ -n "${TAG}" ]; then
|
if [ -n "${TAG}" ]; then
|
||||||
inform "Tagging sources as ${TAG}"
|
inform "Tagging sources as ${TAG}"
|
||||||
# The -F option to CVS is intentionally not used below. If you
|
EXPORTTAG="-r${TAG}"
|
||||||
# need to retry a release, you will have to manually remove any
|
# Try to check out a file using ${TAG}. If the command succeeds,
|
||||||
# existing tag.
|
# 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 || \
|
${CVS} rtag -r ${CVSBRANCH} ${TAG} gcc || \
|
||||||
error "Could not tag sources"
|
error "Could not tag sources"
|
||||||
EXPORTTAG="-r${TAG}"
|
|
||||||
else
|
else
|
||||||
if [ ${CVSBRANCH} != "HEAD" ]; then
|
if [ ${CVSBRANCH} != "HEAD" ]; then
|
||||||
EXPORTTAG="-r${CVSBRANCH}"
|
EXPORTTAG="-r${CVSBRANCH}"
|
||||||
|
|
Loading…
Reference in New Issue