Date: Sat, 30 Jul 2005 01:44:09 -0500 From: Paul Schmehl <pauls@utdallas.edu> To: freebsd-questions@freebsd.org Subject: Shell script help Message-ID: <E9E44D6085C02C80E233D138@Paul-Schmehls-Computer.local>
next in thread | raw e-mail | index | archive | help
I'm working on a new port, and the one thing I can't seem to solve is the
man pages. They install fine, but they're not formatted right.
In the Makefile that is built from configure, this is the section that
handles the man pages:
@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;
Running what I *thought* was the same sed command in the Makefile of the
port doesn't solve the problem of the formatting of the man pages, but it
doesn't generate any errors either:
@${SED} -e '/man\.macros/r man.macros' -e '/man\.macros/d'
${WRKSRC}/doc/${f} \
> ${WRKDIR}/${f}
Can someone explain what the sed command is doing? The man page isn't much
help.
Paul Schmehl (pauls@utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E9E44D6085C02C80E233D138>
