Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 2004 20:02:49 -0600
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Running a script during port build
Message-ID:  <20041126200249.72a15592@dolphin.local.net>
In-Reply-To: <20041127003619.GA55288@xor.obsecurity.org>
References:  <20041126181834.4a8ef9ad@dolphin.local.net> <20041127003619.GA55288@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Nov 2004 16:36:19 -0800, Kris Kennaway <kris@obsecurity.org>
wrote:

> On Fri, Nov 26, 2004 at 06:18:34PM -0600, Conrad J. Sabatier wrote:
> > I'm trying to get a script to run as part of an update to
> > games/gnuchess (to optionally create the opening book for gnuchess).
> > 
> > I've placed the script under games/gnuchess/scripts as
> > "pre-install", but it never seems to be getting invoked.
> > 
> > Has the use of a scripts dir for ports been deprecated?  If not,
> > what does it take to get the script to actually be run?
> 
> You have to call it yourself at the appropriate time..see other ports
> for examples.
> 
> Kris
> 

OK, I finally figured out how to do it.  :-)

Calling scripts/foo ${DISTDIR} ${WRKSRC} and handling the arguments in
the script did the trick.

Thanks.

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"



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