aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-05-03 11:29:39 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2018-05-03 11:29:39 +0200
commit31aac34486dca5948d39570ca5b9930307d52ad8 (patch)
treeb61d4111cbc99f3dd1dce3187c6f0f02fc3fb4c6 /maintainer-scripts
parentc2901468a9ed394160042aaf32d9910ce5b9096f (diff)
downloadgcc-31aac34486dca5948d39570ca5b9930307d52ad8.zip
gcc-31aac34486dca5948d39570ca5b9930307d52ad8.tar.gz
gcc-31aac34486dca5948d39570ca5b9930307d52ad8.tar.bz2
re PR other/85622 (gcc-8.1.0/NEWS says it's not released yet)
PR other/85622 * gcc_release: For -f, verify contrib/gennews has the major version pages listed and both index.html and changes.html have been updated for the new release. From-SVN: r259881
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog7
-rwxr-xr-xmaintainer-scripts/gcc_release32
2 files changed, 38 insertions, 1 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index 71b80f2..0259aab 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,10 @@
+2018-05-03 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/85622
+ * gcc_release: For -f, verify contrib/gennews has the major version
+ pages listed and both index.html and changes.html have been updated
+ for the new release.
+
2018-04-25 Jakub Jelinek <jakub@redhat.com>
* crontab: Enable snapshots from gcc-8-branch.
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index e784554..440b0ba 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-2015 Free Software Foundation.
+# Copyright (c) 2001-2018 Free Software Foundation.
#
# This file is part of GCC.
#
@@ -109,6 +109,36 @@ build_sources() {
${SVN} -q co "${SVNROOT}/${SVNBRANCH}" "`basename ${SOURCE_DIRECTORY}`" ||\
error "Could not check out release sources"
+
+ grep -q "gcc-${RELEASE_MAJOR}/index.html gcc-${RELEASE_MAJOR}/changes.html" \
+ ${SOURCE_DIRECTORY}/contrib/gennews ||\
+ error "New release not listed in contrib/gennews"
+
+ ${SOURCE_DIRECTORY}/contrib/gennews > NEWS ||\
+ error "Could not regenerate NEWS files"
+
+ grep -q "no releases of GCC ${RELEASE_MAJOR} have yet been made" NEWS &&\
+ error "gcc-${RELEASE_MAJOR}/index.html has not been updated yet"
+
+ grep -q "GCC ${RELEASE_MAJOR} has not been released yet" NEWS &&\
+ error "gcc-${RELEASE_MAJOR}/changes.html has not been updated yet"
+
+ thisindex="http:\/\/gcc.gnu.org\/gcc-${RELEASE_MAJOR}\/index.html"
+ thischanges="http:\/\/gcc.gnu.org\/gcc-${RELEASE_MAJOR}\/changes.html"
+ previndex="http:\/\/gcc.gnu.org\/gcc-`expr ${RELEASE_MAJOR} - 1`\/index.html"
+ sed -n -e "/^${thisindex}/,/^${thischanges}/p" NEWS |\
+ sed -n -e "/Release History/,/References and Acknowledgments/p" |\
+ grep -q "GCC ${RELEASE_MAJOR}.${RELEASE_MINOR}" ||\
+ error "GCC ${RELEASE_MAJOR}.${RELEASE_MINOR} not mentioned "\
+ "in gcc-${RELEASE_MAJOR}/index.html"
+
+ sed -n -e "/^${thischanges}/,/^${previndex}/p" NEWS |\
+ grep -q "^GCC ${RELEASE_MAJOR}.${RELEASE_MINOR}" ||\
+ error "GCC ${RELEASE_MAJOR}.${RELEASE_MINOR} not mentioned "\
+ "in gcc-${RELEASE_MAJOR}/changes.html"
+
+ rm -f NEWS
+
svnciargs=""
for x in `changedir ${SOURCE_DIRECTORY} && \
find . -name ChangeLog`; do