Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 16:04:40 -0600
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Jon Drews <jon.drews@gmail.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: How do I put accessory scripts in a Makefile ?
Message-ID:  <790a9fff05021514044802b652@mail.gmail.com>
In-Reply-To: <790a9fff05021514001fee0bd9@mail.gmail.com>
References:  <8cb27cbf05021511345f5b871e@mail.gmail.com> <790a9fff05021514001fee0bd9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Feb 2005 16:00:25 -0600, Scot Hetzel <swhetzel@gmail.com> wrote:
> On Tue, 15 Feb 2005 12:34:11 -0700, Jon Drews <jon.drews@gmail.com> wrote:
> > Port: editors/ted
> > Version: 2.17
> > on:   5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31
> >
> > I have
> >
> > do-install:
> >        ${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin
> >        ${INSTALL_SCRIPT} ${WRKSRC}/tedPackage/Ted ${PREFIX}/bin
> :
> > That is I want to install rtf2pdf.sh and rtf2ps.sh from
> > /usr/ports/editors/ted/work/Ted-2.17/tedPackage/Ted into
> > /usr/X11R6/bin/. Is the line ${INSTALL_SCRIPT}
> > ${WRKSRC}/tedPackage/Ted ${PREFIX}/bin  the correct way to do it?
> >
> Yes.

Was a little to quick, you need:

.for file in rtf2pdf rtf2ps
    ${INSTALL_SCRIPT} ${WRKSRC}/tedPackage/Ted/${file}.sh ${PREFIX}/bin/${file}
.endfor

This way you don't need to specify ".sh" to use the rtf2pdf or rtf2ps scripts.

Scot



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