Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2004 09:39:09 -0500 (EST)
From:      Trevor Johnson <trevor@jpj.net>
To:        =?iso-8859-1?Q?S=F8ren?= Debois <debois@diku.dk>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Substitution in pkg-message
Message-ID:  <20040206093745.K85731@blues.jpj.net>
In-Reply-To: <20040206143014.GA11520@diku.dk>
References:  <20040206140230.GB10686@diku.dk> <20040206091414.L85731@blues.jpj.net> <20040206143014.GA11520@diku.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
Søren Debois wrote:

> On Fri, Feb 06, 2004 at 09:15:27AM -0500, Trevor Johnson wrote:
> > > I'd like my ports pkg-message to result in
> > >
> > >         Please consult %%EXAMPLESDIR%%/README.FreeBSD
> > >
> > > with %%EXAMPLESDIR%% expanded appropriately. Is this possible?
> >
> > PKGMESSAGE=	${WRKDIR}/pkgmessage
> >
> > post-install:
> > 	@${ECHO_CMD} ${EXAMPLESDIR}/README.FreeBSD > ${PKGMESSAGE}
> > 	${CAT} ${PKGMESSAGE}
>
> I did not want to show the readme, I wanted to refer to it. And I'd like
> it to work for packages as well.

Try it, it does what you want.
-- 
Trevor Johnson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040206093745.K85731>