mawk(1) doesn't know how to take length() of an array.
This commit is contained in:
parent
c7182f7cd9
commit
0050067bea
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#!@AWK@ -f
|
||||
# $NetBSD: create-report-html.awk,v 1.11 2008/06/11 19:27:03 joerg Exp $
|
||||
# $NetBSD: create-report-html.awk,v 1.12 2010/03/11 13:18:16 tnn Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
|
||||
# All rights reserved.
|
||||
|
@ -53,11 +53,14 @@ function print_failed_log_line(PKGNAME, PHASE, VAR) {
|
|||
print "<td> </td>" > html_report
|
||||
}
|
||||
|
||||
function print_pre_fail_reason(PKGNAME, chars, in_quote, in_sep, i) {
|
||||
function print_pre_fail_reason(PKGNAME, chars, len, in_quote, in_sep, i) {
|
||||
split(pre_fail_reason[PKGNAME], chars, "")
|
||||
in_quote = 0
|
||||
in_sep = 0
|
||||
for (i = 1; i < length(chars); ++i) {
|
||||
len = 0
|
||||
for (i in chars)
|
||||
len++
|
||||
for (i = 1; i < len; ++i) {
|
||||
if (chars[i] == "\"") {
|
||||
in_quote = 1 - in_quote
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue