Fixing up man pages

Roman Neuhauser neuhauser at sigpipe.cz
Sat Jul 30 09:26:09 GMT 2005


# pauls at utdallas.edu / 2005-07-29 19:10:59 -0500:
> I'm working on updating the x11-toolkits/iwidgets port, and I've run into a 
> problem.  The man pages install fine, but they aren't formatted correctly.

    What does "formatted correctly" mean? Can you paste the output, and
    what you want it to look like instead?
 
> In the Makefile for the source, there is a section that deals with the man 
> pages like this:
> 
> @cd $(TOP_DIR)/doc; for i in *.n; \
>            do \
>            rm -f $(MAN_INSTALL_DIR)/`basename $$i`; \
>            rm -f $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \
>            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
>                $$i > $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \
>            chmod 444 $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \
>            done;
> 
> How can I incorporate this into the port Makefile so that the man pages 
> will be properly formatted?

    The only "formatting" this does is replace the first occurrence
    of "man.macros" on any line with the contents of
    $(TOP_DIR)/doc/man.macros. Is that's what you mean?

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991


More information about the freebsd-ports mailing list