Stopping daily bump of version.c on old/closed branches
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Fri May 2 09:44:00 GMT 2003
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"
More information about the Gcc
mailing list