diff options
author | hoek <hoek@FreeBSD.org> | 2000-05-31 17:41:14 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 2000-05-31 17:41:14 +0000 |
commit | ff5e00cb6635f29c8c500b3575ebfbaa535c8f9c (patch) | |
tree | 46e3ae4a8195a21d48a9fca5d8c402c933ad17c8 /lang | |
parent | e86dde76aa60fa896d5c7f8fc18917a6b0d76f5d (diff) | |
download | FreeBSD-ports-ff5e00cb6635f29c8c500b3575ebfbaa535c8f9c.zip FreeBSD-ports-ff5e00cb6635f29c8c500b3575ebfbaa535c8f9c.tar.gz |
Add a DEINSTALL.tclsh everywhere there exists an INSTALL.tclsh.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/tcl80/pkg-deinstall.tclsh | 22 | ||||
-rw-r--r-- | lang/tcl82/pkg-deinstall.tclsh | 22 | ||||
-rw-r--r-- | lang/tcl83/pkg-deinstall.tclsh | 22 | ||||
-rw-r--r-- | lang/tcl84/pkg-deinstall.tclsh | 22 |
4 files changed, 88 insertions, 0 deletions
diff --git a/lang/tcl80/pkg-deinstall.tclsh b/lang/tcl80/pkg-deinstall.tclsh new file mode 100644 index 0000000..07c6493 --- /dev/null +++ b/lang/tcl80/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 diff --git a/lang/tcl82/pkg-deinstall.tclsh b/lang/tcl82/pkg-deinstall.tclsh new file mode 100644 index 0000000..07c6493 --- /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 diff --git a/lang/tcl83/pkg-deinstall.tclsh b/lang/tcl83/pkg-deinstall.tclsh new file mode 100644 index 0000000..07c6493 --- /dev/null +++ b/lang/tcl83/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 diff --git a/lang/tcl84/pkg-deinstall.tclsh b/lang/tcl84/pkg-deinstall.tclsh new file mode 100644 index 0000000..07c6493 --- /dev/null +++ b/lang/tcl84/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 |