public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: Mark Mitchell <mark@codesourcery.com>,
	"Joseph S. Myers" <jsm28@cam.ac.uk>
Cc: Jie Zhang <zhangjie@magima.com.cn>,
	gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: GCC 3.3 Released
Date: Fri, 23 May 2003 22:59:00 -0000	[thread overview]
Message-ID: <Pine.BSF.4.55.0305240052070.61698@acrux.dbai.tuwien.ac.at> (raw)
In-Reply-To: <Pine.LNX.4.53.0305152314510.14207@kern.srcf.societies.cam.ac.uk>

On Thu, 15 May 2003, Mark Mitchell wrote:
>>> There are four entries for GCC 3.3 release in all ChangeLogs. Like this:
> Let's give it a try.  Please put it on the mainline.  If you would,
> would you also updates release.html to say "For the GCC 3.4 release,
> verify that at least one ChangeLog entry has been created by the release
> script?"  I'll remove that once 3.4 is out.

I have now committed the modified patch below...

On Thu, 15 May 2003, Joseph S. Myers wrote:
> You can test this sort of thing against an rsynced copy of the repository
> (so it needn't wait for 3.4 to come into effect, or require any artificial
> extra entries on the release instructions).

...and verified the patch by repeatedly running the script for GCC 3.3.9
and 3.3.10 (locally, of course <g>).

Mark, do you want the note in releasing.html nevertheless?  And should
this go to the 3.3-branch as well to avoid duplicate ChangeLog entries
there?

Gerald

2003-05-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* gcc_release (build_sources): Only update ChangeLog files which
	do not yet contain the entry we are going to add.
	Fix typo in added ChangeLog entries.

Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.24
diff -u -5 -p -r1.24 gcc_release
--- gcc_release	20 May 2003 11:47:50 -0000	1.24
+++ gcc_release	23 May 2003 22:51:28 -0000
@@ -120,21 +120,26 @@ build_sources() {

     ${CVS} co -d "`basename ${SOURCE_DIRECTORY}`" \
            -r ${BRANCH} gcc || \
            error "Could not check out release sources"
     for x in `find ${SOURCE_DIRECTORY} -name ChangeLog`; do
-      cat - ${x} > ${x}.new <<EOF
+      # Update this ChangeLog file only if it does not yet contain the
+      # entry we are going to add.  (This is a safety net for repeated
+      # runs of this script for the same release.)
+      if ! grep "GCC ${RELEASE} released." ${x} > /dev/null ; then
+        cat - ${x} > ${x}.new <<EOF
 ${LONG_DATE}  Release Manager

-	* GCC ${RELEASE} Released.
+	* GCC ${RELEASE} released.

 EOF
-      mv ${x}.new ${x} || \
-        error "Could not update ${x}"
-      (changedir `dirname ${x}` && \
-        ${CVS} ci -m 'Mark ChangeLog' `basename ${x}`) || \
-        error "Could not commit ${x}"
+        mv ${x}.new ${x} || \
+            error "Could not update ${x}"
+        (changedir `dirname ${x}` && \
+            ${CVS} ci -m 'Mark ChangeLog' `basename ${x}`) || \
+            error "Could not commit ${x}"
+      fi
     done

     # Update `gcc/version.c'.
     for x in gcc/version.c; do
       y=`basename ${x}`

  reply	other threads:[~2003-05-23 22:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-14 23:45 Mark Mitchell
2003-05-15  4:55 ` Jie Zhang
2003-05-15 14:31   ` Gerald Pfeifer
2003-05-15 15:40     ` Mark Mitchell
2003-05-15 22:18     ` Joseph S. Myers
2003-05-23 22:59       ` Gerald Pfeifer [this message]
2003-05-15 10:37 ` Ludovic Brenta
2003-05-15 17:20   ` Joe Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.4.55.0305240052070.61698@acrux.dbai.tuwien.ac.at \
    --to=pfeifer@dbai.tuwien.ac.at \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=jsm28@cam.ac.uk \
    --cc=mark@codesourcery.com \
    --cc=zhangjie@magima.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).