tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PLIST and dynamic filenames?



On Sun, Feb 15, 2015 at 07:13:09PM +0100, Hauke Fath wrote:
> On Sun, 15 Feb 2015 17:12:19 +0100, Thomas Klausner wrote:
> > Please describe what you found out in the guide for the next person
> > needing it.
> 
> You can augment or replace a static PLIST file with the make variable 
> GENERATE_PLIST. It takes shell code, terminated with a semicolon. This 
> code is executed at packaging time, and any resulting output is then 
> appended to the effective PLIST.
> 
> In the editors/xemacs example, the freshly-built xemacs binary is used 
> to produce a build ID, which goes into the filename of the dump file:
> 
> GENERATE_PLIST+=        ${ECHO} bin/${DISTNAME}-`${WRKSRC}/src/xemacs 
> -sd`.dmp ;
> 
> resulting in
> 
> % tail -2 editors/xemacs/work/.PLIST
> @pkgdir lib/xemacs/site-lisp
> bin/xemacs-21.4.23-54e8ea71.dmp
> %
> 
> HTH,

Yes, it does.

I'd have appreciated it even more if you had added it to the guide
directly, but I have done that now.

Thank you,
 Thomas


Home | Main Index | Thread Index | Old Index