How to change man page section of debian software?

自古美人都是妖i 提交于 2019-12-11 14:39:49

问题


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?

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.


回答1:


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 (for version 11.1.6ubuntu2) tells:

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.



来源:https://stackoverflow.com/questions/58981848/how-to-change-man-page-section-of-debian-software

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!