diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-16 14:02:24 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-16 14:02:24 +0000 |
commit | 583f1bc1b1d364825f8c091814b5b563fd49a685 (patch) | |
tree | 8e45d2c1174889797727a431c34fd325679440a9 /maintainer-scripts | |
parent | e89e69ce3701f840d1da2572d1f364ab2ef758b1 (diff) | |
download | gcc-583f1bc1b1d364825f8c091814b5b563fd49a685.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r-- | maintainer-scripts/ChangeLog | 6 | ||||
-rwxr-xr-x | maintainer-scripts/gcc_release | 29 |
2 files changed, 29 insertions, 6 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index b90c0023405..aadc6feffd3 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -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 diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 87d3d9c604f..2db5010e6da 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -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}" |