Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 1997 14:34:58 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
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 
Message-ID:  <97Jun13.143458pdt.177512@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Fri, 13 Jun 97 13:22:10 PDT." <199706132022.NAA03110@vader.cs.berkeley.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97Jun13.143458pdt.177512>