This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Stopping daily bump of version.c on old/closed branches
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: Daniel Berlin <dberlin at dberlin dot org>, gcc at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- Date: Fri, 2 May 2003 11:44:49 +0200 (CEST)
- Subject: Re: Stopping daily bump of version.c on old/closed branches
- References: <398380F8-755C-11D7-9B52-000A95A34564@dberlin.org><m3r87tk6td.fsf@uniton.integrable-solutions.net>
On Wed, 23 Apr 2003, Gabriel Dos Reis wrote:
> My first question would be: Do people think that we should stop
> updating gcc/version.c on old or obsoleted branches?
Somehow this proposal lead to a bikeshed, and in general Gaby's suggestion
only got positive responses, so after waiting one week I implemented the
most conservative of all proposals in the most low-tech way per the patch
below.
Tested on gcc.gnu.org and installed on mainline.
Gerald
2003-05-02 Gerald Pfeifer <gerald@pfeifer@dbai.tuwien.ac.at>
* update_version (IGNORE_BRANCHES): Add.
(BRANCHES): Do not consider branches matching $IGNORE_BRANCHES.
Index: update_version
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/update_version,v
retrieving revision 1.9
diff -u -3 -p -r1.9 update_version
--- update_version 2 May 2003 09:13:52 -0000 1.9
+++ update_version 2 May 2003 09:35:48 -0000
@@ -1,7 +1,9 @@
#!/bin/sh
-# Run this from /tmp.
CVSROOT=${CVSROOT:-/cvs/gcc}
+IGNORE_BRANCHES='gcc-(2_95|3_0|3_1|3_2)-branch'
+
+# Run this from /tmp.
export CVSROOT
/bin/rm -rf /tmp/$$
/bin/mkdir /tmp/$$
@@ -14,7 +16,8 @@ CVS=${CVS:-/usr/local/bin/cvs}
$CVS co gcc/ChangeLog
BRANCHES=`$CVS status -v gcc/ChangeLog \
| awk '{print $1;}' \
- | egrep 'gcc-[0-9]+_[0-9]+-branch$'`
+ | egrep 'gcc-[0-9]+_[0-9]+-branch$' \
+ | egrep -v $IGNORE_BRANCHES`
# Always update the mainline.
BRANCHES="${BRANCHES} HEAD"