无需安装包即可预览手册页

发布于 2024-08-29 09:54:48 字数 311 浏览 4 评论 0原文

我检查了一些使用自动工具的典型开源项目。我想对这个包进行一些修改,但我也想更改包的手册页中的一些内容。

手册页源位于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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回忆躺在深渊里 2024-09-05 09:54:48
man -l /path/to/manfile.1

在我的系统上,此命令的输出与 nroff -man file.1 | 不同。更少。例如,段落在终端边缘换行,而不是在 78 个字符处换行。

man -l /path/to/manfile.1

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.

公布 2024-09-05 09:54:48
nroff -man /path/to/manfile.1 | less
nroff -man /path/to/manfile.1 | less
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文