I’m packaging an app that uses Cmdliner for Debian, and generating the manpages by piping <command> --help=groff to my manpage files.
It works great, the manpages can properly be read, but the Debian package linter, lintian, uses lexgrog to parse the manpages for some metadata. However, lexgrog doesn’t like escape characters in the NAME section. Cmdliner is generating \N'45' for the regular dash - character, which breaks this tool (and thus quite a few Debian packaging tools). Would it be possible to generate \- instead? (or - within the text and \- for command-line options, but that one may be too tricky)
For now, I’m piping the output to sed "s/\\N'45'/\\-/g", but was hoping for a more “legacy” handling of dashes that works well with groff parsers. What do you think?
I’m packaging an app that uses Cmdliner for Debian, and generating the manpages by piping
<command> --help=groffto my manpage files.It works great, the manpages can properly be read, but the Debian package linter,
lintian, useslexgrogto parse the manpages for some metadata. However,lexgrogdoesn’t like escape characters in theNAMEsection. Cmdliner is generating\N'45'for the regular dash-character, which breaks this tool (and thus quite a few Debian packaging tools). Would it be possible to generate\-instead? (or-within the text and\-for command-line options, but that one may be too tricky)For now, I’m piping the output to
sed "s/\\N'45'/\\-/g", but was hoping for a more “legacy” handling of dashes that works well with groff parsers. What do you think?