mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Scatter DEINSTALL.wish to wherever there exists INSTALL.wish
This commit is contained in:
parent
7fece56865
commit
4c488df21a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29091
22
x11-toolkits/tk80/pkg-deinstall.wish
Normal file
22
x11-toolkits/tk80/pkg-deinstall.wish
Normal file
@ -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
|
22
x11-toolkits/tk82/pkg-deinstall.wish
Normal file
22
x11-toolkits/tk82/pkg-deinstall.wish
Normal file
@ -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
|
22
x11-toolkits/tk83/pkg-deinstall.wish
Normal file
22
x11-toolkits/tk83/pkg-deinstall.wish
Normal file
@ -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
|
22
x11-toolkits/tk84/pkg-deinstall.wish
Normal file
22
x11-toolkits/tk84/pkg-deinstall.wish
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user