This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix version-bumping script (and all affected files)


During this change

    2002-02-25  Mark Mitchell  <mark@codesourcery.com>

            * update_version: Automatically update version files on all
            branches.

the "$OLD_VERSION" string in the 'here documents' was indented, probably
to make the script nicer-looking.  Well, the contents of the here document
-- now including the indentation -- are written back out to the various
version.c files.  So each time the script runs, we progressively indent
the first line of the version file by about eight spaces.  Oops.  :-)

This fixes the script, and the first line of each of the version files.
Committed on mainline as obvious.  Five separate ChangeLogs with five
separate commits, as below.


2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* update_version:  Don't indent the version string.


Index: update_version
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/update_version,v
retrieving revision 1.4
diff -u -3 -p -r1.4 update_version
--- update_version	2002/02/26 07:13:25	1.4
+++ update_version	2002/03/06 18:35:22
@@ -47,7 +47,7 @@ for BRANCH in $BRANCHES; do
     if test -f $file; then 
       OLD_VERSION=`/bin/cat $file`
       /bin/sed -e "s/\(.*\"[^ ]*\) [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\1 ${CURR_DATE}/" >${file} <<HERE
-        $OLD_VERSION
+$OLD_VERSION
 HERE
 
       COMMIT_FILES="$COMMIT_FILES $file"
@@ -58,7 +58,7 @@ HERE
     if test -f $file; then 
       OLD_VERSION=`/bin/cat $file`
       /bin/sed -e "s/\(#.*\) [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\1 ${CURR_DATE}/" >${file} <<HERE
-        $OLD_VERSION
+$OLD_VERSION
 HERE
 
       COMMIT_FILES="$COMMIT_FILES $file"




2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/c++config:  Fix misplaced leading blanks on first line.


Index: include/bits/c++config
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/c++config,v
retrieving revision 1.288
diff -u -3 -p -r1.288 c++config
--- c++config	2002/03/06 08:18:28	1.288
+++ c++config	2002/03/06 18:36:45
@@ -1,4 +1,4 @@
-                                                                                // Predefined symbols and macros -*- C++ -*-
+// Predefined symbols and macros -*- C++ -*-
 
 // Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 //



2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* version.c:  Fix misplaced leading blanks on first line.


Index: version.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/version.c,v
retrieving revision 1.1524
diff -u -3 -p -r1.1524 version.c
--- version.c	2002/03/06 08:18:21	1.1524
+++ version.c	2002/03/06 18:39:08
@@ -1,4 +1,4 @@
-                                                                                #include "ansidecl.h"
+#include "ansidecl.h"
 #include "version.h"
 
 const char *const version_string = "3.2 20020306 (experimental)";



2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* version.c:  Fix misplaced leading blanks on first line.


Index: version.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/version.c,v
retrieving revision 1.1014
diff -u -3 -p -r1.1014 version.c
--- version.c	2002/03/06 08:18:23	1.1014
+++ version.c	2002/03/06 18:40:30
@@ -1,4 +1,4 @@
-                                                                                #include "ansidecl.h"
+#include "ansidecl.h"
 #include "f/version.h"
 
 const char *const ffe_version_string = "3.2 20020306 (experimental)";





2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* libF77/Version.c:  Fix misplaced leading blanks on first line.
	* libI77/Version.c:  Likewise.
	* libU77/Version.c:  Likewise.


Index: libF77/Version.c
===================================================================
RCS file: /cvs/gcc/gcc/libf2c/libF77/Version.c,v
retrieving revision 1.982
diff -u -3 -p -r1.982 Version.c
--- Version.c	2002/03/06 08:18:24	1.982
+++ Version.c	2002/03/06 18:41:50
@@ -1,4 +1,4 @@
-                                                                                static char junk[] = "\n@(#)LIBF77 VERSION 20000929\n";
+static char junk[] = "\n@(#)LIBF77 VERSION 20000929\n";
 
 /*
 */
Index: libI77/Version.c
===================================================================
RCS file: /cvs/gcc/gcc/libf2c/libI77/Version.c,v
retrieving revision 1.989
diff -u -3 -p -r1.989 Version.c
--- Version.c	2002/03/06 08:18:25	1.989
+++ Version.c	2002/03/06 18:41:50
@@ -1,4 +1,4 @@
-                                                                                static char junk[] = "\n@(#) LIBI77 VERSION pjw,dmg-mods 20001205\n";
+static char junk[] = "\n@(#) LIBI77 VERSION pjw,dmg-mods 20001205\n";
 
 /*
 */
Index: libU77/Version.c
===================================================================
RCS file: /cvs/gcc/gcc/libf2c/libU77/Version.c,v
retrieving revision 1.981
diff -u -3 -p -r1.981 Version.c
--- Version.c	2002/03/06 08:18:27	1.981
+++ Version.c	2002/03/06 18:41:50
@@ -1,4 +1,4 @@
-                                                                                static char junk[] = "\n@(#) LIBU77 VERSION 19980709\n";
+static char junk[] = "\n@(#) LIBU77 VERSION 19980709\n";
 
 char __G77_LIBU77_VERSION__[] = "3.2 20020306 (experimental)";
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]