[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#643735: lintian: Add check for manual page to verify TH matches FILENAME.N



On 2011-10-12 14:56, Niels Thykier wrote:
| On 2011-10-12 13:44, jari wrote:
| > [...]
| > 
| > If it were classified "X:" and explanation reads "certainty: not
| > sure", I don't think there is not much problem. 
| > 
| > Jari
| > 
| 
| I am not convinced there is a point in implementing this tag if we do
| not take common cases into consideration.  I do not want X tags to stay
| experimental forever and I do not consider this proposal (so far) good
| enough to survive as a pedantic/wild-guess.
| 
| If we can agree on how we can fairly reliably handle this case without
| too many false-positives, I will consider it.  But otherwise I think our
| time is better spent on some of the other 170ish bugs.

This can be handled. Take a look at how gzip(1):


    .TH GZIP 1 local
    .SH NAME
    gzip, gunzip, zcat \- compress or expand files
    .SH SYNOPSIS

I guess something like:

    1. Parse binary names from (.SH) up till (-)
    2. Verify that .IX [if exists] and .TH headers match any of the
       found names.
    3. Likewise, verify that the beginning of the filename matches any
       of the found names.

Jari



Reply to: