gcc_release (build_sources): Use two new variables EXPORTTAG and EXPORTDATE to make the extraction of...

* gcc_release (build_sources): Use two new variables EXPORTTAG and
	EXPORTDATE to make the extraction of sources more transparent and
	also allow snapshots (off mainline) without a tag.

From-SVN: r70507
This commit is contained in:
Gerald Pfeifer 2003-08-16 14:02:24 +00:00 committed by Gerald Pfeifer
parent bfeec33d09
commit ae7a543957
2 changed files with 29 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2003-08-16 Gerald Pfeifer <gerald@pfeifer.com>
* gcc_release (build_sources): Use two new variables EXPORTTAG and
EXPORTDATE to make the extraction of sources more transparent and
also allow snapshots (off mainline) without a tag.
2003-08-08 Mark Mitchell <mark@codesourcery.com>
* gcc_release: Correct logic for updating version.c. Put

View File

@ -161,15 +161,32 @@ EOF
inform "Tagging sources as ${TAG}"
${CVS} rtag -r ${CVSBRANCH} -F ${TAG} gcc || \
error "Could not tag sources"
CVSBRANCH=$TAG
EXPORTTAG="-r${TAG}"
EXPORTDATE=""
else
if [ ${CVSBRANCH} != "HEAD" ]; then
EXPORTTAG="-r${CVSBRANCH}"
else
# HEAD is the default branch, no need to specify it.
EXPORTTAG=""
fi
EXPORTDATE="-D`date -u +"%Y-%m-%d %H:%M"` UTC"
fi
# Export the current sources.
inform "Retrieving release sources"
${CVS} \
export -d "`basename ${SOURCE_DIRECTORY}`" \
-r ${CVSBRANCH} gcc || \
error "Could not retrieve release sources"
inform "Retrieving sources (cvs export ${EXPORTTAG} ${EXPORTDATE} gcc)"
if [ -z "${EXPORTTAG}" ]; then
${CVS} export -d "`basename ${SOURCE_DIRECTORY}`" \
"${EXPORTDATE}" gcc || \
error "Could not retrieve sources"
elif [ -z "${EXPORTDATE}" ]; then
${CVS} export -d "`basename ${SOURCE_DIRECTORY}`" \
"${EXPORTTAG}" gcc || \
error "Could not retrieve sources"
else
error "Cannot specify -r and -D at the same time"
fi
# Run gcc_update on them to set up the timestamps nicely.
changedir "gcc-${RELEASE}"