aboutsummaryrefslogtreecommitdiff
path: root/lang/tcl82
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2000-05-31 17:41:14 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2000-05-31 17:41:14 +0000
commit7ab809f56b94f395118f05dd960f2f14b9108620 (patch)
tree19fdf123afa6b14fb20e18f201f1e4937bb4d5d4 /lang/tcl82
parent37e4a0377f9b65a53bac96a7c1a347f1db8c3349 (diff)
downloadports-7ab809f56b94f395118f05dd960f2f14b9108620.tar.gz
ports-7ab809f56b94f395118f05dd960f2f14b9108620.zip
Notes
Diffstat (limited to 'lang/tcl82')
-rw-r--r--lang/tcl82/pkg-deinstall.tclsh22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/tcl82/pkg-deinstall.tclsh b/lang/tcl82/pkg-deinstall.tclsh
new file mode 100644
index 000000000000..07c6493c07cf
--- /dev/null
+++ b/lang/tcl82/pkg-deinstall.tclsh
@@ -0,0 +1,22 @@
+#! /bin/sh
+#
+# Remove the ${PREFIX}/bin/tclsh script that gets installed by INSTALL.tclsh
+# if we are the last tclsh installation to be pkg_delete'd.
+#
+# $FreeBSD$
+#
+
+#
+# Explicitly listing /usr/X11R6/bin here is debatable.
+#
+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])?$')
+
+if [ "$tclshs" = "" -a -f ${TCLSH} ] && \
+ (head -3 ${TCLSH} | grep awieYJFnsuILOnfsYEW) > /dev/null 2>&1
+then
+ rm -f ${PKG_PREFIX}/bin/tclsh
+fi