I am packaging a program for ubuntu, And I am getting a lintian warning saying my binary needs a manpage.
How does one go about creating a manpage for a program?
I am packaging a program for ubuntu, And I am getting a lintian warning saying my binary needs a manpage.
How does one go about creating a manpage for a program?
With the help of Gmanedit you are able to create manpages with a graphical GUI.
According to the Debian FHS user program manpages are stored in
usr/share/man/man1
orusr/local/share/man/man1
.After changing manpages it may be wise to update the manpage database by running
mandb
in a terminal.Details on the manpage syntax are summarized in the manpage for man.
You can write manpages in docbook/refentry, an XML documentation format,
and then convert the results to man format using
to html with
and so on. This is not the easiest way to write a manpage, but if you have written XML before then you know the syntax already, it is just a matter of learning the tags to use.
Give this a whirl I have just uploaded it I write a number of apps and have been having trouble with a decent manpage editor
Now hosted on github, docs and repo: https://keithdhedger.github.io/pages/manpageeditor/manpageeditor.html https://github.com/KeithDHedger/ManPageEditor
This is a gtk2 app with a separate tab for each section importing manpages previewing and exporting are all supported, no esoteric formatting commands, this is still under development but is certainly stable enough to use.
You can do it with autotools. GNU has published example where a C project installs a manpage with autotools.