This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(patch) fix contrib/test_summary?
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 Jan 2003 15:41:09 -0500
- Subject: (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 "";