diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-19 14:34:12 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-19 14:34:12 +0000 |
commit | 785116ce910c16a831e74ac39ac634e83f89717e (patch) | |
tree | 867d9692ff939bbadedd4c3abc870818e761fef6 /contrib | |
parent | a91288b8225c6993fa1b3d4d4b03eb62a91eb848 (diff) | |
download | gcc-785116ce910c16a831e74ac39ac634e83f89717e.tar.gz |
* test_summary (configflags): Only use the first match. Remove
excess space. Use sub instead of gsub where possible. Use `none'
if no configure flags were given.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 6 | ||||
-rwxr-xr-x | contrib/test_summary | 19 |
2 files changed, 17 insertions, 8 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 0cca22d2d3d..229ec5e47da 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,9 @@ +2003-01-19 Alexandre Oliva <aoliva@redhat.com> + + * test_summary (configflags): Only use the first match. Remove + excess space. Use sub instead of gsub where possible. Use `none' + if no configure flags were given. + 2003-01-10 Loren J. Rittle <ljrittle@acm.org> * test_summary (configflags): awk portability. diff --git a/contrib/test_summary b/contrib/test_summary index a56f581aa58..356d7b320ac 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -88,25 +88,28 @@ if $forcemail || $anychange; then :; else mailto=nobody; fi && cat ./config.status $files | $AWK ' BEGIN { - lang=""; + lang=""; configflags = ""; address="gcc-testresults@gcc.gnu.org"; version="gcc"; print "cat <<'"'"'EOF'"'"' |"; '${prepend_logs+" system(\"cat $prepend_logs\"); "}' } -$0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure / { +($0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure /) && +configflags == "" { configflags = $0 " "; - gsub(/^# /, "", configflags); + sub(/^# /, "", configflags); srcdir = configflags; - gsub(/\/configure .*/, "", srcdir); + sub(/\/configure .*/, "", srcdir); printf "LAST_UPDATED: "; system("tail -1 " srcdir "/LAST_UPDATED"); print ""; - gsub(/^[^ ]*\/configure /, "configure flags: ", configflags); - gsub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags); - gsub(/ --norecursion /, " ", configflags); - gsub(/ $/, "", configflags); + sub(/^[^ ]*\/configure */, " ", configflags); + sub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags); + sub(/ --norecursion /, " ", configflags); + sub(/ $/, "", configflags); + sub(/^ *$/, " none", configflags); + configflags = "configure flags:" configflags; } /^Running target / { print ""; print; } /^Target / { if (host != "") next; else host = $3; } |