> > > > James Olin Oden wrote: > > ><- SNIP -> > > I like the man.config.d idea, but I think gnu-man has a solution already > in place. > > In the man(1) page MANPATH_MAP and the NOAUTOPATH control the > automatic construction of MANPATH. > > if NOAUTOPATH is not set in /etc/man.config then it can be autocreated. > > so If PATH=/opt/foo/bin > man will auto search /opt/foo/man > > I just tested this with man-1.5j-6 (in skipjack) > and /etc/man.config is the Red Hat default. > > So the package needs to drop a file in /etc/profile.d > that sets the executable path to /opt/foo/bin > and man will aututomatically add /opt/foo/man > to the MANPATH. It will also look for /opt/foo/bin/man > if you don't want seperate bin and man dirs for each package. > > I losty the exact layout you wanted to use, but I think these > options should do what you need. > Its very close, but if I understood MANPATH_MAP correctly it only works for directories you put in your path. So this does not work for man pages for libraries and such. man.config.d solution solves this problem. Cheers...james > -Thomas > > > > > _______________________________________________ > Redhat-devel-list mailing list > Redhat-devel-list@redhat.com > https://listman.redhat.com/mailman/listinfo/redhat-devel-list > _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list