diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-01-07 11:56:25 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2003-01-07 11:56:25 +0000 |
commit | ce985125f5f133f380546787fefacaaa9715114e (patch) | |
tree | f1eb3af16f1ca5afde4722dc81b10c47b84617a2 /contrib/test_summary | |
parent | 83282119ef1d93e17a49f27a7cc5814aabc7c35c (diff) | |
download | gcc-ce985125f5f133f380546787fefacaaa9715114e.zip gcc-ce985125f5f133f380546787fefacaaa9715114e.tar.gz gcc-ce985125f5f133f380546787fefacaaa9715114e.tar.bz2 |
test_summary (configflags): Compute correctly with both autoconfiscated and Cygnus-style top-level.
* test_summary (configflags): Compute correctly with both
autoconfiscated and Cygnus-style top-level.
From-SVN: r60991
Diffstat (limited to 'contrib/test_summary')
-rwxr-xr-x | contrib/test_summary | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/contrib/test_summary b/contrib/test_summary index 5b9cdc8..377f9e5 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; } |