Fixing up man pages

Paul Schmehl pauls at utdallas.edu
Sat Jul 30 00:11:25 GMT 2005


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.

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?

Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/


More information about the freebsd-ports mailing list