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:
parent
bfeec33d09
commit
ae7a543957
@ -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>
|
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
|
|||||||
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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user