This file is indexed.

postinst is in emacs23 23.3+1-1ubuntu9.1.

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

set -e

FLAVOR=emacs23

update-alternatives \
  --install /usr/bin/emacs emacs \
            /usr/bin/${FLAVOR}-x 26 \
  --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
          /usr/share/man/man1/emacs.${FLAVOR}.1.gz \
  --slave /usr/share/icons/hicolor/scalable/apps/emacs.svg emacs.svg \
          /usr/share/icons/hicolor/scalable/apps/${FLAVOR}.svg \
  --slave /usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg \
          emacs-document.svg \
          /usr/share/icons/hicolor/scalable/mimetypes/${FLAVOR}-document.svg \
  --slave /usr/share/icons/hicolor/16x16/apps/emacs.png emacs-16x16.png \
          /usr/share/icons/hicolor/16x16/apps/${FLAVOR}.png \
  --slave /usr/share/icons/hicolor/24x24/apps/emacs.png  emacs-24x24.png \
          /usr/share/icons/hicolor/24x24/apps/${FLAVOR}.png \
  --slave /usr/share/icons/hicolor/32x32/apps/emacs.png emacs-32x32.png \
          /usr/share/icons/hicolor/32x32/apps/${FLAVOR}.png \
  --slave /usr/share/icons/hicolor/48x48/apps/emacs.png emacs-48x48.png \
          /usr/share/icons/hicolor/48x48/apps/${FLAVOR}.png \
  --slave /usr/share/icons/hicolor/128x128/apps/emacs.png emacs-128x128.png \
          /usr/share/icons/hicolor/128x128/apps/${FLAVOR}.png

update-alternatives \
  --install /usr/bin/editor editor \
            /usr/bin/${FLAVOR} 0 \
  --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
          /usr/share/man/man1/emacs.${FLAVOR}.1.gz

# emacsen-common registration.
/usr/lib/emacsen-common/emacs-install ${FLAVOR}

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