summaryrefslogtreecommitdiff
path: root/contrib/test_summary
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-01-19 14:34:12 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2003-01-19 14:34:12 +0000
commitd25fc1b572e615a78cc238837658e1e845bff7f9 (patch)
tree867d9692ff939bbadedd4c3abc870818e761fef6 /contrib/test_summary
parenta99820e6c8da5105242ac793cae4d4298cc44fbc (diff)
test_summary (configflags): Only use the first match.
* 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. From-SVN: r61483
Diffstat (limited to 'contrib/test_summary')
-rwxr-xr-xcontrib/test_summary19
1 files changed, 11 insertions, 8 deletions
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; }