Preview a man page without installing a package

I checked a typical open source project that uses automated tools. I want to hack this package a bit, but I would also like to change something on the package man page.

The source of the man page is in the name project-name / doc / project-name.1. I just made a small change, and now I want to view this change without having to do a project installation. How to do it?

I tried things like:

man -M . 1 project-name 

But this will not work, and not the various options that I have tried. This sounds like a simple problem, but I cannot find anything due to a search problem, so I hope someone here helps me. Thanks.

+6
linux autotools configure manpage man
source share
2 answers
 nroff -man /path/to/manfile.1 | less 
+7
source share
 man -l /path/to/manfile.1 

On my system, the output of this command is different from nroff -man file.1 | less nroff -man file.1 | less . For example, covers on the edge of the terminal, not 78 characters.

+13
source share

All Articles