summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-07 11:56:25 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-07 11:56:25 +0000
commit10c7cbcd0c5ed55f8e5b18a7d5f6db13783d6ce8 (patch)
treef1eb3af16f1ca5afde4722dc81b10c47b84617a2 /contrib
parent411666ea53d8c874ea5bd5ae34db3800fccdc076 (diff)
downloadgcc-10c7cbcd0c5ed55f8e5b18a7d5f6db13783d6ce8.tar.gz
* test_summary (configflags): Compute correctly with both
autoconfiscated and Cygnus-style top-level. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60991 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/test_summary15
2 files changed, 14 insertions, 6 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 2f1b83c5e5f..50d3405a81c 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-07 Alexandre Oliva <aoliva@redhat.com>
+
+ * test_summary (configflags): Compute correctly with both
+ autoconfiscated and Cygnus-style top-level.
+
2003-01-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc_update (files_and_dependencies): Add gcc/cp/cfns.h depends
diff --git a/contrib/test_summary b/contrib/test_summary
index 5b9cdc8f39e..377f9e5df0d 100755
--- a/contrib/test_summary
+++ b/contrib/test_summary
@@ -94,16 +94,19 @@ BEGIN {
print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
}
-$1 ~ /\/configure$/ {
- srcdir = $1;
- gsub(/\/configure$/, "", srcdir);
+$0 ~ /^(|# )[^ ]*\/configure / {
+ configflags = $0 " ";
+ gsub(/^# /, "", configflags);
+ srcdir = configflags;
+ gsub(/\/configure .*/, "", srcdir);
printf "LAST_UPDATED: ";
system("tail -1 " srcdir "/LAST_UPDATED");
print "";
- $1 = "configure flags:"; configflags = $0;
- gsub(/--with-gcc-version-trigger=[^ ]* /, "", configflags);
- gsub(/ --norecursion/, "", configflags)
+ gsub(/^[^ ]*\/configure /, "configure flags: ", configflags);
+ gsub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags);
+ gsub(/ --norecursion /, " ", configflags);
+ gsub(/ $/, "", configflags);
}
/^Running target / { print ""; print; }
/^Target / { if (host != "") next; else host = $3; }