OSDN Git Service

* test_summary (version): remove carriage return that gawk inserts
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jan 1999 00:17:40 +0000 (00:17 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jan 1999 00:17:40 +0000 (00:17 +0000)
in the version string for some reason

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24552 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/test_summary

index 98b7d0b..2023d92 100644 (file)
@@ -1,3 +1,8 @@
+1999-01-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * test_summary (version): remove carriage return that gawk inserts
+       in the version string for some reason
+
 1998-11-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
 
        * egcs_update: Only touch files that already exist.
index 5a28ddc..fd76292 100755 (executable)
@@ -107,7 +107,7 @@ $1 ~ /\/configure$/ { $1 = "configure flags:"; configflags = $0 }
 }
 /--disable-haifa/ { prefix="haifa-disabled "; }
 /--enable-haifa/ { prefix="haifa-enabled "; }
-$2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */, "", version); $0 = save; }
+$2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */, "", version); gsub(/\r$/, "", version); $0 = save; }
 /\===.*Summary/ { print ""; print; blanks=1; }
 /tests ===/ || /^(Target|Host|Native)/ || $2 == "version" { print; blanks=1; }
 /^(XPASS|FAIL|# of )/ { print; }