Fixes mapcheck to expect all lines in a file to be gopher formatted lines (4 tab separated columns)
This commit is contained in:
parent
a3b4a2d077
commit
8ff3ee95b8
4
mapcheck
4
mapcheck
|
@ -72,9 +72,9 @@ BEGIN {
|
||||||
print "WARNING: Line", NR ":", "Line length is", length($1) ". Max length is", MAXLEN
|
print "WARNING: Line", NR ":", "Line length is", length($1) ". Max length is", MAXLEN
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NF > 1 && NF < 4) {
|
if (NF != 4) {
|
||||||
ERR++
|
ERR++
|
||||||
print "ERROR: Line", NR ":", "Link line with", NF, "columns. Expected 4."
|
print "ERROR: Line", NR ":", "Line with", NF, "columns. Expected 4."
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NF == 4 && !(substr($1, 1, 1) in TYPES)) {
|
if (NF == 4 && !(substr($1, 1, 1) in TYPES)) {
|
||||||
|
|
Loading…
Reference in New Issue