aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts/gcc_release
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-16 14:02:24 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-16 14:02:24 +0000
commit583f1bc1b1d364825f8c091814b5b563fd49a685 (patch)
tree8e45d2c1174889797727a431c34fd325679440a9 /maintainer-scripts/gcc_release
parente89e69ce3701f840d1da2572d1f364ab2ef758b1 (diff)
* 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/gcc_release')
-rwxr-xr-xmaintainer-scripts/gcc_release29
1 files changed, 23 insertions, 6 deletions
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}"