Shell script help

From: Paul Schmehl (pauls_at_utdallas.edu)
Date: 07/30/05

  • Next message: Parv: "Re: Shell script help"
    Date: Sat, 30 Jul 2005 01:44:09 -0500
    To: freebsd-questions@freebsd.org
    
    

    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/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Parv: "Re: Shell script help"

    Relevant Pages

    • Help sought for new nvtv (NVidia TV-Out) port (was: ? getopt_long(), iopl() and ioperm() ?)
      ... I have started to fiddle with a program called nvtv which supposedly makes ... some other NVidia-based cards, too. ... ports) of the port skeleton I made. ... Here is the patch to pciutils-2.1.11's Makefile (sorry, cut&paste, you may ...
      (freebsd-questions)
    • Re: Samba Port on FreeBSD 5.1
      ... If you need copies of the files that joerg ... samba-devel port so it will support ADS. ... > Is it necessary to modify the Makefile of the samba-devel port on FreeBSD ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Which php??
      ... Makefile directly. ... usually given by "make config" or the configuration files ... of the port managament tool you use. ...
      (freebsd-questions)
    • Re: ANNOUNCE: DJGPP port of GNU Gawk 4.0.0 uploaded.
      ... Here is a quick and dirty patch for the gawk 4.0.0 port Makefile that will ... allow to create all documentation files. ...
      (comp.os.msdos.djgpp)
    • RE: Remote Assistance
      ... You may introduce formatting ... Best to use Notepad. ... you will probably have to have his router point that port to his ... IP" address of your relative's computer in your ticket. ...
      (microsoft.public.windowsxp.help_and_support)