(patch) fix contrib/test_summary?

Nathanael Nerode neroden@twcny.rr.com
Mon Jan 6 20:42:00 GMT 2003


This seems to fix contrib/test_summary to work against new 
config.status.  I understand the script very poorly, so I have no idea 
what else I've broken.

	* test_summary: Fix to work with new config.status.

Index: test_summary
===================================================================
RCS file: /cvs/gcc/gcc/contrib/test_summary,v
retrieving revision 1.21
diff -u -r1.21 test_summary
--- test_summary	16 May 2002 17:41:58 -0000	1.21
+++ test_summary	6 Jan 2003 20:41:22 -0000
@@ -94,9 +94,10 @@
   print "cat <<'"'"'EOF'"'"' |";
 '${prepend_logs+"  system(\"cat $prepend_logs\"); "}'
 }
-$1 ~ /\/configure$/ {
-    srcdir = $1;
-    gsub(/\/configure$/, "", srcdir);
+$0 ~ /# (.*)\/configure(.*)$/ {
+    srcdir = $0;
+    gsub(/\/configure(.*)$/, "", srcdir);
+    gsub(/# /, "", srcdir);
     printf "LAST_UPDATED: ";
     system("tail -1 " srcdir "/LAST_UPDATED");
     print "";



More information about the Gcc-patches mailing list