This file is indexed.

prerm is in xemacs21-mule-canna-wnn 21.4.22-14ubuntu1.

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
#!/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

##