manskeleton
-- build skeleton man paths
manskeleton
[-1
] [-2
] [-3
] [-4
] [-5
] [-6
] [-7
] [-8
] [-d
dirname] [-e
extension]
Builds a skeleton directory and makefiles for turning ron
(1)-compatible markdown files into man pages. Desired sections are given as command line options. If more sections become necessary later, it is safe to re-run manskeleton
with more options.
-1
, -2
, -3
, -4
, -5
, -6
, -7
, -8
-d
dirname
-e
extension
ron
(1)-compatible markdown files. Defaults to md because GitHub renders files with this extension.The directory structure build by manskeleton
will allow gems and other packages installed in non-standard locations to provide man pages by tweaking your manpath. Setting the MANPATH
environment variable will do but you'll have to re-run this command each time you need to add to your manpath.
export MANPATH=$(for MAN in /var/lib/gems/1.8/gems/*/man; do echo -n :$MAN; done)
A better, though slower, solution is to alias man
(1) to recalculate your manpath at each invocation.
alias man='man --manpath=$(echo -n $(manpath); for MAN in /var/lib/gems/1.8/gems/*/man; do echo -n :$MAN; done)'
Richard Crowley r@rcrowley.org
ron
(1) is used by the generated makefiles to render man pages: http://github.com/rtomayko/ron
gem-man
(1) inspired this program and provides an alternative to the environment-based method above for finding man pages in non-standard locations: http://github.com/defunkt/gem-man