From owner-freebsd-ports Fri Jun 13 14:37:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA21921 for ports-outgoing; Fri, 13 Jun 1997 14:37:18 -0700 (PDT) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA21908 for ; Fri, 13 Jun 1997 14:37:12 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by agora.rdrop.com (8.8.5/8.8.5) with SMTP id OAA28312 for ; Fri, 13 Jun 1997 14:37:03 -0700 (PDT) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <17712(7)>; Fri, 13 Jun 1997 14:35:13 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177512>; Fri, 13 Jun 1997 14:34:58 -0700 To: asami@cs.berkeley.edu (Satoshi Asami) cc: fenner@parc.xerox.com, ports@freebsd.org Subject: Re: cvs commit: ports/devel/gmake/patches patch-aa In-reply-to: Your message of "Fri, 13 Jun 97 13:22:10 PDT." <199706132022.NAA03110@vader.cs.berkeley.edu> Date: Fri, 13 Jun 1997 14:34:58 PDT From: Bill Fenner Message-Id: <97Jun13.143458pdt.177512@crevenia.parc.xerox.com> Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Eh, I don't buy the "you have to do some hard stuff so let's make you do more" argument. The problem of having to supply arguments to install-info can be solved the same way as it is in bsd.info.mk. And a PLIST fragment can be auto-generated easily: info-plist-stuff: .if defined(INFO) .for infofile in ${INFO} @echo @unexec install-info --delete %D/info/dir %D/info/${infofile} .endfor .for infofile in ${INFO} @echo info/${infofile} .endfor @echo "@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir" .for infofile in ${INFO} @echo @exec install-info %D/info/dir %D/info/${infofile} .endfor .endif and then this fragment can be merged by hand into the PLIST (since generating this part of the PLIST has to be done by hand anyway). If you assume a sorted PLIST (or at least one where all of the info/ entries are next to each other), you can do some automatic stuff with sed -n -e '1,/^info/p' -e '/install-info/d' PLIST.old ; \ for ... ; \ sed -e '1,/^info/d' -e '/^info/d' -e '/install-info/d' PLIST.old > PLIST (where "..." is replaced by the equivalent of the 'info-plist-stuff' target above) but that's a big assumption (and ugly sed). Bill