Mail Archives: djgpp-workers/2001/01/03/12:59:48
> > So having, say, a $DJDIR/share/perl5/man directory, with the man
> > files in subdirectories would mirror the layout of the
> > $DJDIR/lib/perl5/ directory.
> Does "make install" in the Perl distribution indeed install the man
> pages in $prefix/share/perl/man/? Or does it install them in the
> standard $prefix/man/ tree?
It defaults to the standard man tree, but it asks you during the
configure process, so this could be defaulted to $prefix/share/perl/man/
in the djgpp hint file. I was looking for a way to have subdirs (and the
fairly decent 8.3 support that comes with it), while not upsetting the
normal man tree too much.
> It is an issue for the way `man' is written: it looks for man pages in
> each directory mentioned in MANPATH and in its first-level
> subdirectories, but only if those subdirectories match man* and cat*
> patterns (the actual patterns are more complex than man*, to DTRT in
> various special cases). It will not descend into deeper
> subdirectories, and it will not look for foo.1 in a directory called
> foobar/man/man5, say.
Ah, you mean it looks through the manpaths based on a pattern that
already includes the topic? If not, I don't see the problem:
you substitute '/' for '::' in the topic name; then in each top-level
subdir of the dirs in MANPATH (if they match man*/cat*), you look for
'topic.section' (so for 'Foo::Bar' in section 3, you'd look for
'Foo/Bar.3' in /dev/env/SOMEMANDIR/man3. I would expect this to DTRT
(since we crete the subdir ref by substituting ::, man doesn't need
to look though further subdirs).
In any case, for me it's mostly a moot point anyway; I rarely use plain
DOS, so the 8.3 issue doesn't really affect me. As long as mane
transparently maps :: to __ (or _, as the case may be) so 'man Foo::Bar'
works, I'll be happy.
- Raw text -