Commit b69cd3cf by Gerald Pfeifer Committed by Gerald Pfeifer

gcc_release (BRANCH): Rename to...

	* gcc_release (BRANCH): Rename to...
	(CVSBRANCH): ...new macro, and use BRANCH for the variant users
	will see.
	(FTP_BRANCH): For snapshots, include ${BRANCH} in the last part
	of the directory name.
	Use .snapshot_date-${BRANCH} instead of .snapshot_date.

From-SVN: r68777
parent a9d58f96
2003-07-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* gcc_release (BRANCH): Rename to...
(CVSBRANCH): ...new macro, and use BRANCH for the variant users
will see.
(FTP_BRANCH): For snapshots, include ${BRANCH} in the last part
of the directory name.
Use .snapshot_date-${BRANCH} instead of .snapshot_date.
2003-06-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 2003-06-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* gcc_release: Command "all" now creates .gz files only for * gcc_release: Command "all" now creates .gz files only for
......
...@@ -119,7 +119,7 @@ build_sources() { ...@@ -119,7 +119,7 @@ build_sources() {
inform "Updating ChangeLogs and version files" inform "Updating ChangeLogs and version files"
${CVS} co -d "`basename ${SOURCE_DIRECTORY}`" \ ${CVS} co -d "`basename ${SOURCE_DIRECTORY}`" \
-r ${BRANCH} gcc || \ -r ${CVSBRANCH} gcc || \
error "Could not check out release sources" error "Could not check out release sources"
for x in `find ${SOURCE_DIRECTORY} -name ChangeLog`; do for x in `find ${SOURCE_DIRECTORY} -name ChangeLog`; do
# Update this ChangeLog file only if it does not yet contain the # Update this ChangeLog file only if it does not yet contain the
...@@ -159,16 +159,16 @@ EOF ...@@ -159,16 +159,16 @@ EOF
# Tag the sources. # Tag the sources.
if [ -n "${TAG}" ]; then if [ -n "${TAG}" ]; then
inform "Tagging release sources" inform "Tagging release sources"
${CVS} rtag -r ${BRANCH} -F ${TAG} gcc || \ ${CVS} rtag -r ${CVSBRANCH} -F ${TAG} gcc || \
error "Could not tag release sources" error "Could not tag release sources"
BRANCH=$TAG CVSBRANCH=$TAG
fi fi
# Export the current sources. # Export the current sources.
inform "Retrieving release sources" inform "Retrieving release sources"
${CVS} \ ${CVS} \
export -d "`basename ${SOURCE_DIRECTORY}`" \ export -d "`basename ${SOURCE_DIRECTORY}`" \
-r ${BRANCH} gcc || \ -r ${CVSBRANCH} gcc || \
error "Could not retrieve release sources" error "Could not retrieve release sources"
# Run gcc_update on them to set up the timestamps nicely. # Run gcc_update on them to set up the timestamps nicely.
...@@ -431,9 +431,14 @@ RELEASE_REVISION="" ...@@ -431,9 +431,14 @@ RELEASE_REVISION=""
# The complete name of the release. # The complete name of the release.
RELEASE="" RELEASE=""
# The name of the branch from which the release should be made. # The name of the branch from which the release should be made, in a
# user-friendly form.
BRANCH="" BRANCH=""
# The name of the branch from which the release should be made, as used
# for our version control system.
CVSBRANCH=""
# The tag to apply to the sources used for the release. # The tag to apply to the sources used for the release.
TAG="" TAG=""
...@@ -547,7 +552,7 @@ if [ $SNAPSHOT -eq 0 ]; then ...@@ -547,7 +552,7 @@ if [ $SNAPSHOT -eq 0 ]; then
# Compute the name of the branch, which is based solely on the major # Compute the name of the branch, which is based solely on the major
# and minor release numbers. # and minor release numbers.
BRANCH="gcc-${RELEASE_MAJOR}_${RELEASE_MINOR}-branch" CVSBRANCH="gcc-${RELEASE_MAJOR}_${RELEASE_MINOR}-branch"
# If this is not a final release, set various parameters acordingly. # If this is not a final release, set various parameters acordingly.
if [ ${FINAL} -ne 1 ]; then if [ ${FINAL} -ne 1 ]; then
...@@ -559,14 +564,15 @@ if [ $SNAPSHOT -eq 0 ]; then ...@@ -559,14 +564,15 @@ if [ $SNAPSHOT -eq 0 ]; then
else else
RELEASE=$DATE RELEASE=$DATE
# For now snapshots come from the 3.3 branch. # For now snapshots come from the 3.3 branch.
BRANCH=gcc-3_3-branch BRANCH="3.3"
FTP_PATH="${FTP_PATH}/snapshots/${LONG_DATE}" CVSBRANCH=gcc-3_3-branch
FTP_PATH="${FTP_PATH}/snapshots/${BRANCH}-${LONG_DATE}"
TAG=gcc_ss_${DATE} TAG=gcc_ss_${DATE}
# Building locally on gcc.gnu.org, we know what the last snapshot date # Building locally on gcc.gnu.org, we know what the last snapshot date
# was. # was.
if [ $LOCAL -ne 0 ]; then if [ $LOCAL -ne 0 ]; then
LAST_DATE=`cat ~/.snapshot_date` LAST_DATE=`cat ~/.snapshot_date-${BRANCH}`
LAST_LONG_DATE=`date --date=$LAST_DATE +%Y-%m-%d` LAST_LONG_DATE=`date --date=$LAST_DATE +%Y-%m-%d`
LAST_DIR=~ftp/pub/gcc/snapshots/${LAST_LONG_DATE} LAST_DIR=~ftp/pub/gcc/snapshots/${LAST_LONG_DATE}
OLD_TARS=${LAST_DIR}/gcc-${LAST_DATE}.tar.bz2 OLD_TARS=${LAST_DIR}/gcc-${LAST_DATE}.tar.bz2
...@@ -661,7 +667,7 @@ if [ $MODE_UPLOAD -ne 0 ]; then ...@@ -661,7 +667,7 @@ if [ $MODE_UPLOAD -ne 0 ]; then
# Update snapshot date file. # Update snapshot date file.
changedir ~ changedir ~
echo $DATE >.snapshot_date echo $DATE > .snapshot_date-${BRANCH}
# Remove working directory # Remove working directory
rm -rf ${WORKING_DIRECTORY} rm -rf ${WORKING_DIRECTORY}
......
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