From 8d4fc29a87f95900ffe5503aa9ce502320712b16 Mon Sep 17 00:00:00 2001
From: Tim Vanderhoek <hoek@FreeBSD.org>
Date: Wed, 31 May 2000 18:31:17 +0000
Subject: Be aware of otclsh and tclsh8.1_r

---
 lang/tcl82/pkg-deinstall.tclsh | 2 +-
 lang/tcl82/pkg-install.tclsh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'lang/tcl82')

diff --git a/lang/tcl82/pkg-deinstall.tclsh b/lang/tcl82/pkg-deinstall.tclsh
index 07c6493c07cf..c48dc863cf43 100644
--- a/lang/tcl82/pkg-deinstall.tclsh
+++ b/lang/tcl82/pkg-deinstall.tclsh
@@ -13,7 +13,7 @@ BINDIR="${PKG_PREFIX}/bin /usr/X11R6/bin"
 TCLSH=${PKG_PREFIX}/bin/tclsh
 
 tclshs=$(/bin/ls ${BINDIR} 2> /dev/null | \
-    egrep '^i?tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
+    egrep '^(i?tclsh[0-9]+\.[0-9]+(\_r)?([a-z][a-z])?)|otclsh$')
 
 if [ "$tclshs" = "" -a -f ${TCLSH} ] && \
     (head -3 ${TCLSH} | grep awieYJFnsuILOnfsYEW) > /dev/null 2>&1
diff --git a/lang/tcl82/pkg-install.tclsh b/lang/tcl82/pkg-install.tclsh
index 9dec69942b2a..3b808e2b500f 100644
--- a/lang/tcl82/pkg-install.tclsh
+++ b/lang/tcl82/pkg-install.tclsh
@@ -23,7 +23,7 @@ echo "installed because a given port may depend on a specific version."
 echo
 echo "On your system, tclsh is installed under at least the following names:"
 echo
-for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^i?tclsh[0-9]+\.[0-9]+([a-z][a-z])?$')
+for name in $(/bin/ls $(echo $PATH | sed 's/:/ /g') 2> /dev/null | egrep '^(i?tclsh[0-9]+\.[0-9]+(\_r)?([a-z][a-z])?)|otclsh$')
 do
 	echo $name
 done
-- 
cgit v1.2.3