summaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-12 20:49:37 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-12 20:49:37 +0000
commitec17f8267534164fb15b6044528a628b6bbfc3e2 (patch)
treec9b934d91fbf9713dc8612ad51b180d45c763a46 /maintainer-scripts
parentb8e27798f8236308459ff3e1d41d9d5afa73f315 (diff)
downloadgcc-ec17f8267534164fb15b6044528a628b6bbfc3e2.tar.gz
* gcc_release: For RELEASE_MAJOR 5+ only use the major
number in branch name. When doing final release of 5+, if BASE-VER doesn't match release, but is *.*.1 for the one smaller minor version, bump BASE-VER. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222031 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog5
-rwxr-xr-xmaintainer-scripts/gcc_release24
2 files changed, 25 insertions, 4 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index c69a22ff639..5e152295c52 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,5 +1,10 @@
2015-04-12 Jakub Jelinek <jakub@redhat.com>
+ * gcc_release: For RELEASE_MAJOR 5+ only use the major
+ number in branch name. When doing final release of 5+,
+ if BASE-VER doesn't match release, but is *.*.1 for the
+ one smaller minor version, bump BASE-VER.
+
* crontab: Enable snapshots from gcc-5-branch.
2015-04-07 Gerald Pfeifer <gerald@pfeifer.com>
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index c20b410bd22..80ddda1e26b 100755
--- a/maintainer-scripts/gcc_release
+++ b/maintainer-scripts/gcc_release
@@ -9,7 +9,7 @@
# Contents:
# Script to create a GCC release.
#
-# Copyright (c) 2001-2014 Free Software Foundation.
+# Copyright (c) 2001-2015 Free Software Foundation.
#
# This file is part of GCC.
#
@@ -130,8 +130,20 @@ EOF
# Update gcc/DEV-PHASE.
- [ `cat ${SOURCE_DIRECTORY}/gcc/BASE-VER` = ${RELEASE} ] || \
- error "Release number ${RELEASE} does not match BASE-VER"
+ if [ `cat ${SOURCE_DIRECTORY}/gcc/BASE-VER` = ${RELEASE} ]; then
+ [ ${RELEASE_MAJOR} -lt 5 ] && \
+ error "Release number ${RELEASE} does not match BASE-VER"
+ if [ `cat ${SOURCE_DIRECTORY}/gcc/BASE-VER` \
+ = ${RELEASE_MAJOR}.`expr ${RELEASE_MINOR} - 1`.1 \
+ -a x${RELEASE_REVISION} = x0 ]; then
+ (changedir ${SOURCE_DIRECTORY}/gcc && \
+ echo ${RELEASE} > BASE-VER && \
+ ${SVN} -q ci -m 'Bump release' BASE-VER) || \
+ error "Could not update BASE-VER"
+ else
+ error "Release number ${RELEASE} does not match BASE-VER"
+ fi
+ fi
(changedir ${SOURCE_DIRECTORY}/gcc && \
: > DEV-PHASE && \
${SVN} -q ci -m 'Mark as release' DEV-PHASE) || \
@@ -605,7 +617,11 @@ if [ $SNAPSHOT -eq 0 ]; then
# Compute the name of the branch, which is based solely on the major
# and minor release numbers.
- SVNBRANCH="branches/gcc-${RELEASE_MAJOR}_${RELEASE_MINOR}-branch"
+ if [ ${RELEASE_MAJOR} -ge 5 ]; then
+ SVNBRANCH="branches/gcc-${RELEASE_MAJOR}-branch"
+ else
+ SVNBRANCH="branches/gcc-${RELEASE_MAJOR}_${RELEASE_MINOR}-branch"
+ fi
# If this is not a final release, set various parameters accordingly.
if [ ${FINAL} -ne 1 ]; then