如何更改debian软件的手册页部分? [英] How to change man page section of debian software?

查看:139
本文介绍了如何更改debian软件的手册页部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该软件包的手册页在第1节中,但我希望在第8节中使用它.我必须在git中进行哪些更改?

The package's manual page is in section 1 but I want it in section 8. What kind of changes do I have to do in git?

我尝试将package.1文件重命名为package.8,但至少在我由dpkg-buildpackage创建软件包时没有帮助.

I tried renaming the package.1 file to package.8, but it did not help at least when I created the package by dpkg-buildpackage.

推荐答案

您必须在手册页文件的内容中指定该部分. 如果通过help2man创建文件,则必须使用--section选项,在本例中为--section=8.

You have to denote the section in the contents of the manual page file. If you create the file by help2man you have to use --section option, in this case --section=8.

man 1 dh_installman(对于11.1.6ubuntu2版本)显示:

man 1 dh_installman (for version 11.1.6ubuntu2) tells:

如果dh_installman似乎将手册页安装到错误的部分,或者 扩展名错误,这是因为手册页有错误 .TH或.Dt行中列出的部分.编辑手册页并更正 本节中的内容,dh_installman也将效仿.参见man(7) 有关.TH部分的详细信息,以及有关.Dt部分的mdoc(7).

If dh_installman seems to install a man page into the wrong section or with the wrong extension, this is because the man page has the wrong section listed in its .TH or .Dt line. Edit the man page and correct the section, and dh_installman will follow suit. See man(7) for details about the .TH section, and mdoc(7) for the .Dt section.

这篇关于如何更改debian软件的手册页部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆