diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-12 08:43:36 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-12 08:43:36 +0100 |
commit | 36d2092a3330692c43f33ef4e05edc997c05ecad (patch) | |
tree | 4d9d26469d8b6aee5a32ef16ee67d82b17d5e72e /sys/lib/man | |
parent | af42c4f4816c84772533ee7f47ffaafd33abeb22 (diff) |
fix manpage references
Diffstat (limited to 'sys/lib/man')
-rw-r--r-- | sys/lib/man/checkman.awk | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/lib/man/checkman.awk b/sys/lib/man/checkman.awk index 30ab83aee..c1fce39c4 100644 --- a/sys/lib/man/checkman.awk +++ b/sys/lib/man/checkman.awk @@ -84,9 +84,8 @@ FNR==1 { name = substr(FILENAME, seclen+2, n-seclen-1) if($1 != ".TH" || NF != 3) print "First line of", FILENAME, "not a proper .TH" - else if($2 != toupper(name) || substr($3, 1, seclen) != section){ - if($2!="INTRO" || name!="0intro") - print ".TH of", FILENAME, "doesn't match filename" + else if(($2!="INTRO" || name!="0intro") && ($2 != toupper(name) || substr($3, 1, seclen) != section)){ + print ".TH of", FILENAME, "doesn't match filename" }else Pages[section "/" $2] = 1 } @@ -177,7 +176,7 @@ END { for (i in Refs) { if (!(i in Pages)){ split(tolower(i), a, "/") - print "grep -n " a[2] ".*" a[1] " ?/* # Need " tolower(i) + print "grep -in '" a[2] "[ ]*\\(" a[1] "' ?/* # Need " tolower(i) } } print "" |