diff options
author | hoek <hoek@FreeBSD.org> | 2000-06-02 15:15:24 +0800 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 2000-06-02 15:15:24 +0800 |
commit | c64a76d21985db89875ac07f1b316585ff0493c6 (patch) | |
tree | 18b0a2dcfb0da5ba85209cf6a1b83c97b1753a23 /x11-toolkits/tk83 | |
parent | 31b4571e1e65c4da7fe9d11fc6460b19f5872599 (diff) | |
download | freebsd-ports-gnome-c64a76d21985db89875ac07f1b316585ff0493c6.tar.gz freebsd-ports-gnome-c64a76d21985db89875ac07f1b316585ff0493c6.tar.zst freebsd-ports-gnome-c64a76d21985db89875ac07f1b316585ff0493c6.zip |
Scatter DEINSTALL.wish to wherever there exists INSTALL.wish
Diffstat (limited to 'x11-toolkits/tk83')
-rw-r--r-- | x11-toolkits/tk83/pkg-deinstall.wish | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/tk83/pkg-deinstall.wish b/x11-toolkits/tk83/pkg-deinstall.wish new file mode 100644 index 000000000000..20ca9e8436c4 --- /dev/null +++ b/x11-toolkits/tk83/pkg-deinstall.wish @@ -0,0 +1,22 @@ +#! /bin/sh +# +# Remove the ${PREFIX}/bin/wish script that gets installed by INSTALL.wish +# if we are the last wish installation to be pkg_delete'd. +# +# $FreeBSD$ +# + +# +# Explicitly listing /usr/X11R6/bin here is debatable. +# +BINDIR="${PKG_PREFIX}/bin /usr/X11R6/bin" +WISH=${PKG_PREFIX}/bin/wish + +wishes=$(/bin/ls ${BINDIR} 2> /dev/null | \ + egrep '^o?wish(step)?(x|([0-9]+\.[0-9]+))([a-z][a-z])?$') + +if [ "$wishes" = "" -a -f ${WISH} ] && \ + (head -3 ${WISH} | grep awieYJFnsuILOnfsYEW) > /dev/null 2>&1 +then + rm -f ${PKG_PREFIX}/bin/wish +fi |