无需安装包即可预览手册页
我检查了一些使用自动工具的典型开源项目。我想对这个包进行一些修改,但我也想更改包的手册页中的一些内容。
手册页源位于project-name/doc/project-name.1。我刚刚做了一个小更改,现在我想预览该更改,而不必实际对项目进行 make install。我该怎么做?
我尝试过类似的东西:
man -M . 1 project-name
但它不起作用,我尝试过的各种变体也不起作用。这听起来像是一个简单的问题,但我似乎无法通过谷歌搜索这个问题找到任何东西,所以我希望这里有人可以帮助我。谢谢。
I've checked out some typical open source project which is using auto-tools. I want to hack a bit on this package, but I would also like to change something in the man-page of the package.
The man-page source is found project-name/doc/project-name.1. I just made a small change, and now I want to preview that change, without having to actually do a make install of the project. How do I do that?
I tried stuff like:
man -M . 1 project-name
But it does not work, neither does the various variations I have tried. This sounds like a simple problem, but I can't seem to find anything by googling on the problem, so I'm hoping someone here can help me out. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我的系统上,此命令的输出与 nroff -man file.1 | 不同。更少。例如,段落在终端边缘换行,而不是在 78 个字符处换行。
On my system, the output from this command is different from
nroff -man file.1 | less
. Paragraphs wrap at the edge of the terminal, for instance, rather than at 78 characters.