Commit ae7a5439 by Gerald Pfeifer Committed by Gerald Pfeifer

gcc_release (build_sources): Use two new variables EXPORTTAG and EXPORTDATE to…

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
parent bfeec33d
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> 2003-08-08 Mark Mitchell <mark@codesourcery.com>
* gcc_release: Correct logic for updating version.c. Put * gcc_release: Correct logic for updating version.c. Put
......
...@@ -161,15 +161,32 @@ EOF ...@@ -161,15 +161,32 @@ EOF
inform "Tagging sources as ${TAG}" inform "Tagging sources as ${TAG}"
${CVS} rtag -r ${CVSBRANCH} -F ${TAG} gcc || \ ${CVS} rtag -r ${CVSBRANCH} -F ${TAG} gcc || \
error "Could not tag sources" 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 fi
# Export the current sources. # Export the current sources.
inform "Retrieving release sources" inform "Retrieving sources (cvs export ${EXPORTTAG} ${EXPORTDATE} gcc)"
${CVS} \
export -d "`basename ${SOURCE_DIRECTORY}`" \ if [ -z "${EXPORTTAG}" ]; then
-r ${CVSBRANCH} gcc || \ ${CVS} export -d "`basename ${SOURCE_DIRECTORY}`" \
error "Could not retrieve release sources" "${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. # Run gcc_update on them to set up the timestamps nicely.
changedir "gcc-${RELEASE}" changedir "gcc-${RELEASE}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment