Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 01:50:18 -0400
From:      Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: ports projects
Message-ID:  <20000531015018.A90783@orange>
In-Reply-To: <vqc8zwrs4z4.fsf@silvia.hip.berkeley.edu>; from Satoshi - Ports Wraith - Asami on Tue, May 30, 2000 at 09:45:03PM -0700
References:  <Pine.BSF.4.10.10005021057480.36418-100000@pawn.primelocation.net> <vqcvh0wacgg.fsf@silvia.hip.berkeley.edu> <200005071229.FAA29460@silvia.hip.berkeley.edu> <200005301106.EAA47917@silvia.hip.berkeley.edu> <20000530174311.B83316@orange> <vqc8zwrs4z4.fsf@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 30, 2000 at 09:45:03PM -0700, Satoshi - Ports Wraith - Asami wrote:
[..]
>> Does that do what you want?  Or something else?
> 
> That does look like what I want.  Basically it deletes
> ${PKG_PREFIX}/bin/tclsh iff it has the "awie...." magic string and
> there are no other stuff like "tclsh8.0" and "tclsh7.6jp", right?

That's what it did when I tested it.  :-)

Looking over it again, now, I don't think the -L symlink test adds
anything useful.

Since I was responsible for the original tclsh and wish, I can add
this to the various ports.

Do you think it's better to use a single copy of it in a shared
${PKGDIR} (ie. the way it's done for the INSTALL.tclsh and
INSTALL.wish scripts), or to put a copy into each tclsh and wish port?
The use of `portcheckout` is increasing, but I'm not sure it really
matters in that context.  I think I favour a single copy synched with
INSTALL.(tcl|wi)sh.


[proposed script post-pended for reference]

>  * #! /bin/sh
>  * TCLSH=${PKG_PREFIX}/bin/tclsh
>  * BINDIR="${PKG_PREFIX}/bin /usr/X11R6/bin"
>  * tclshs=$(/bin/ls ${BINDIR} 2> /dev/null | \
>  *     egrep '^tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
>  * if [ "$tclshs" = "" -a -f ${TCLSH} -a ! -L ${TCLSH} ] && \
>  *     (head -3 ${TCLSH} | grep awieYJFnsuILOnfsYEW) >/dev/null 2>&1
>  * then
>  * 	rm -f ${TCLSH}
>  * fi
>  * 
>  * 


-- 
Signature withheld by request of author.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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