Subject: Re: simplifying an installation of examples and doc files
To: Roland Illig <rillig@NetBSD.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-pkg
Date: 10/22/2007 11:39:13
On Sun, Oct 21, 2007 at 11:41:46PM +0200, Roland Illig wrote:

> I tried to trade-off complexity for generality. I don't think the following 
> lines are hard to understand:
>
> INST_GROUPS+=       docs
> INST_FROM.docs=     doc
> INST_FILES.docs=    *.html
> INST_TO.docs=       share/doc/${PKGNAME}
>
> Well, ok, compared to the explicit command
>
> cd ${WRKSRC}/doc \
> && ${INSTALL_DATA} *.html ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}/.
>
> it may be pretty verbose. I thought I could remove some of the redundancy 
> (WRKSRC, DESTDIR, PREFIX), but now I think I only made it worse.

well, the second form would make it possible to auto-generate (part of) 
the PLIST file, wouldn't it?

	-is
-- 
seal your e-mail: http://www.gnupg.org/