Date: 30 May 2000 21:45:03 -0700 From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) To: Tim Vanderhoek <vanderh@ecf.utoronto.ca> Cc: ports@freebsd.org Subject: Re: ports projects Message-ID: <vqc8zwrs4z4.fsf@silvia.hip.berkeley.edu> In-Reply-To: Tim Vanderhoek's message of "Tue, 30 May 2000 17:43:11 -0400" 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>
next in thread | previous in thread | raw e-mail | index | archive | help
* From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> * > * > The only "biggie" left that I am aware of is tcl/tk with their * > tclsh/wish scripts. We need to write a clever script that goes with * > INSTALL.{tcl,wi}sh that will remove them when there are no other * > {tcl,wi}sh* scripts found. * * The existing tclsh script checks for other tclsh installations with: * * name=$(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^tclsh[0-9]+\.[0-9]+([a-z][a-z])?$') * * That is, it checks $PATH for anything matching that regexp. If * ``$PATH'' was changed to ``${PKG_PREFIX}/bin'', pkg/DEINSTALL could look * like: * * #! /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 * * * 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? Satoshi 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?vqc8zwrs4z4.fsf>