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]

(patch) fix contrib/test_summary?


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 "";


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