This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to gcc_release
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: Patch to gcc_release
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Wed, 20 Jun 2001 00:32:23 +0100 (BST)
This patch makes some adjustments to gcc_release: the whitespace in
the ChangeLog entry is made to follow the normal conventions better,
and the release status in the Fortran version files is updated to
"release" automatically (which seems a more conservative fix for the
3.0 branch than going to a single version file and a single version
number). It doesn't handle changing back to "prerelease" and
increasing the version number immediately after the release is tagged,
though perhaps it should. OK to commit?
2001-06-20 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc_release: Add another space to ChangeLog headers. Use tab to
indent ChangeLog message. Update release status in Fortran
version files.
Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/contrib/Attic/gcc_release,v
retrieving revision 1.1.2.13
diff -u -r1.1.2.13 gcc_release
--- gcc_release 2001/06/18 15:48:36 1.1.2.13
+++ gcc_release 2001/06/19 23:26:47
@@ -114,9 +114,9 @@
error "Could not check out release sources"
for x in `find ${SOURCE_DIRECTORY} -name ChangeLog`; do
cat - ${x} > ${x}.new <<EOF
-`date "+%Y-%m-%d"` Release Manager
+`date "+%Y-%m-%d"` Release Manager
- * GCC ${RELEASE} Released.
+ * GCC ${RELEASE} Released.
EOF
mv ${x}.new ${x} || \
@@ -127,12 +127,20 @@
done
# Update `gcc/version.c'. There are other version files
- # as well, but it is unclear whether nor not they
- # should be updated.
+ # as well, which should have release status updated.
for x in gcc/version.c; do
y=`basename ${x}`
(changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
sed -e 's|= \".*\"|= \"${RELEASE}\"|g' < ${y} > ${y}.new && \
+ mv ${y}.new ${y} && \
+ ${CVS} ci -m 'Update version' ${y}) || \
+ error "Could not update ${x}"
+ done
+ for x in gcc/f/version.c libf2c/libF77/Version.c \
+ libf2c/libI77/Version.c libf2c/libU77/Version.c; do
+ y=`basename ${x}`
+ (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
+ sed -e 's/experimental\|prerelease/release/g' < ${y} > ${y}.new && \
mv ${y}.new ${y} && \
${CVS} ci -m 'Update version' ${y}) || \
error "Could not update ${x}"
--
Joseph S. Myers
jsm28@cam.ac.uk