This file is indexed.

postinst is in chocolate-doom 3.0.0-4.

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

set -e

if [ "$1" = "abort-upgrade" ] || [ "$1" = "configure" ]
then
  update-alternatives \
  --install /usr/games/doom doom /usr/games/chocolate-doom 50 \
  --slave /usr/share/man/man6/doom.6.gz doom.6.gz /usr/share/man/man6/chocolate-doom.6.gz
  update-alternatives \
  --install /usr/games/heretic heretic /usr/games/chocolate-heretic 50 \
  --slave /usr/share/man/man6/heretic.6.gz heretic.6.gz /usr/share/man/man6/chocolate-heretic.6.gz
  update-alternatives \
  --install /usr/games/hexen hexen /usr/games/chocolate-hexen 50 \
  --slave /usr/share/man/man6/hexen.6.gz hexen.6.gz /usr/share/man/man6/chocolate-hexen.6.gz
  update-alternatives \
  --install /usr/games/strife strife /usr/games/chocolate-strife 50 \
  --slave /usr/share/man/man6/strife.6.gz strife.6.gz /usr/share/man/man6/chocolate-strife.6.gz
fi

# Automatically added by dh_icons/11.1.4ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if which update-icon-caches >/dev/null 2>&1 ; then
		update-icon-caches /usr/share/icons/chocolate-doom.png /usr/share/icons/chocolate-setup.png
	fi
fi
# End automatically added section


exit 0