This file is indexed.

postinst is in xemacs21-nomule 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh -e
set -e

# Make symlinks due to an emacs-install failure
OLDDATADIR=/usr/lib/xemacs-21.4.22
NEWDATADIR=/usr/share/xemacs-21.4.22
test -e ${OLDDATADIR}/etc || ln -s ${NEWDATADIR}/etc ${OLDDATADIR}/etc
test -e ${OLDDATADIR}/lisp || ln -s ${NEWDATADIR}/lisp ${OLDDATADIR}/lisp

# oops.  Needed to check version on upgrade.  Now just need to remove old ones.
for i in 1 2 3 4 5 6 ; do
    update-alternatives --remove xemacs21 /usr/bin/xemacs-21.4.$i-nomule
done

update-alternatives --install /usr/bin/xemacs21 xemacs21 /usr/bin/xemacs21-nomule 70

# Ok we dont' want to compile these files when we already have another
# installed.
ALREADY_MULE=0
ALREADY_NOMULE=0
for i in mule mule-canna-wnn gnome-mule 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 [ "nomule" != "$i" -a "$STAT" = "install ok installed" ] ; then
    ALREADY_MULE=1
  fi
done

for i in nomule gnome-nomule ; do
  STAT=`dpkg -s xemacs21-$i 2> /dev/null | perl -ne 'next if $_ !~ m/^Status/; $_ =~ s/^Status:\s*(.*)/$1/; print;'`
  if [ "nomule" != "$i" -a "$STAT" = "install ok installed" ] ; then
    ALREADY_NOMULE=1
  fi
done

#if [ "$ALREADY_MULE" = "0" ] ; then
   #/usr/lib/emacsen-common/emacs-install xemacs21-mule
#fi

#if [ "$ALREADY_NOMULE" = "0" ] ; then
   #/usr/lib/emacsen-common/emacs-install xemacs21-nomule
#fi

if [ "$ALREADY_NOMULE" = "0" -a "$ALREADY_MULE" = "0" ] ; then
   /usr/lib/emacsen-common/emacs-install xemacs21
fi

## Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section
#