Gentlemen, IMHO, the doman function should be able to detect that blah.1 goes into /usr/share/man/man1 whereas blah.1x should go into /usr/X11R6/man/man1 thanks.
How's this: http://gentoo.twobit.net/portage/doman/ The doman.test shows variable flow. doman blah.1 --> Installs into /usr/share/man/man1 doman blah.1x --> Installs into /usr/X11R6/man/man1 doman -kde blah.1 --> Installs into /opt/kde/man/man1 doman -kde blah.1x --> Installs into /usr/X11R6/man/man1 doman blah.1 blah.1x -kde kde.4 tcl.N blah.1 -> /usr/share blah.1x -> /usr/X11R6 kde.4 -> /opt/kde tcl.N -> /opt/kde (wrong place... but it's an example.) doman tcl.N -kde blah.1 -gnome foo.3 bar.6x doman -kde blah.1 -gnome foo.3 -- tcl.N blah.1 -> /opt/kde foo.3 -> /opt/gnome tcl.N -> /usr/share bar.6x -> /usr/X11R6
Created attachment 4987 [details] updated file checks man-page for header info if not *.[1-8n] ...
I think this is taken care of by now. :)