aboutsummaryrefslogtreecommitdiff
path: root/lang/tcl80
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2000-05-31 17:45:53 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2000-05-31 17:45:53 +0000
commitb766e9ce1623aa7195499f76824ff58576b46110 (patch)
treea4ebd382f354be5175680e7d1b876c2a7fe9f88e /lang/tcl80
parent7ab809f56b94f395118f05dd960f2f14b9108620 (diff)
downloadports-b766e9ce1623aa7195499f76824ff58576b46110.tar.gz
ports-b766e9ce1623aa7195499f76824ff58576b46110.zip
Notes
Diffstat (limited to 'lang/tcl80')
-rw-r--r--lang/tcl80/pkg-install.tclsh9
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/tcl80/pkg-install.tclsh b/lang/tcl80/pkg-install.tclsh
index 055957a6c36f..9dec69942b2a 100644
--- a/lang/tcl80/pkg-install.tclsh
+++ b/lang/tcl80/pkg-install.tclsh
@@ -3,14 +3,17 @@
# The user may have a tclsh they want to preserve
ver=`grep -a awieYJFnsuILOnfsYEW ${PKG_PREFIX}/bin/tclsh 2> /dev/null \
| sed -e 's/.*\*\*//'`
-if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 001 ]
+if [ ! -e ${PKG_PREFIX}/bin/tclsh ] || [ "$ver" != "" -a "$ver" -lt 002 ]
then
[ -f ${PKG_PREFIX}/bin/tclsh ] && chmod u+w ${PKG_PREFIX}/bin/tclsh
mkdir -p ${PKG_PREFIX}/bin
cat > ${PKG_PREFIX}/bin/tclsh <<'EOF'
#!/bin/sh
-# Installed by ports system. id: awieYJFnsuILOnfsYEW**001
+# Installed by ports system. id: awieYJFnsuILOnfsYEW**002
+#
+# $FreeBSD$
+#
(
echo "In FreeBSD, tclsh is named with a version number. This is because"
@@ -20,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 '^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]+([a-z][a-z])?$')
do
echo $name
done