prerm is in xemacs21-mule-canna-wnn 21.4.22-3.2ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/bin/sh -e
set -e
if [ "$1" != "upgrade" ] ; then
update-alternatives --remove xemacs21 /usr/bin/xemacs21-mule-canna-wnn
fi
# Ok we dont' want to deinstall these files when we already have another
# installed.
ALREADY=0
for i in mule nomule mule-canna-wnn gnome-mule gnome-nomule gnome-mule-canna-wnn ; do
STAT=`dpkg -s xemacs21-$i 2>/dev/null | perl -ne 'next if $_ !~ m/^Status/; $_ =~ s/^Status:\s*(.*)/$1/; print;'`
if [ "mule-canna-wnn" != "$i" -a "$STAT" = "install ok installed" ] ; then
ALREADY=1
fi
done
if [ "$ALREADY" = "0" ] ; then
/usr/lib/emacsen-common/emacs-remove xemacs21
fi
if [ -L /usr/doc/xemacs21-mule-canna-wnn ]; then
rm -f /usr/doc/xemacs21-mule-canna-wnn
fi
if [ -L /usr/lib/xemacs-21.4.22/etc ]; then
rm -f /usr/lib/xemacs-21.4.22/etc
fi
if [ -L /usr/lib/xemacs-21.4.22/lisp ]; then
rm -f /usr/lib/xemacs-21.4.22/lisp
fi
##
|