Open lepalom opened 10 years ago
The generated files are here [1], but we need some cmake magic to install them. @thomas-moulard proposed to use [2] as an example. Searching the web, I've found [3-5] as other sources. Still I'm not sure about the best way to do it:
[1] http://anonscm.debian.org/gitweb/?p=debian-science/packages/pcl.git;a=tree;f=debian/manpages [2] https://raw.githubusercontent.com/jrl-umi3218/jrl-cmakemodules/master/man.cmake [3] http://stackoverflow.com/questions/3375341/man-page-generation-packaging-installation-with-cmake [4] http://public.kitware.com/pipermail/cmake-developers/2011-June/001708.html [5] http://www.cmake.org/pipermail/cmake/2010-November/040774.html
Related: http://serverfault.com/questions/109490/how-do-i-write-man-pages
Among the recommend software, I find ronn particularly interesting: https://github.com/rtomayko/ronn
As PCL is hosted on GitHub it would allow the GitHub users to see easily the man page (or something close) online while being also useful as a man page once installed. It is available through apt on 12.04.
Please note that I didn't check if the generate man pages are acceptable by Debian standards or not. In particular I recommended [2] because as far as I know man pages must be compressed before being installed (otherwise it will generate a lintian error).
From my experience, about 95% of the man pages are from the pcl tools and applications. In general they are small programs that do something interesting.
I think that something maintainable could be to have the same information in the source code (--help) parameter than the man page. So, the man pages were generated from using help2man.
I generated almost ALL the pages from here, and the most important work was to reformat the output from help2man program, especially tabs controls, and so on.
In this way, only one place to put the information. For example, I noticed from spell errors in the --help output that I solved in the man pages.
I think that have duplicated this information is waste resources without any important profit.
I didn't know this command, this seems to be an elegant solution! :+1: for help2man.
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
If someone is interested in creating a PR about this, I found a project which integrates help2man
in cmake: klatexformula fork
We are creating a debian package for pcl and we have found that there are a lot of application without a man page. We are referring to:
in general the documentation is written. For instance:
so, this information should be formatted in in troff format to use with man.