This file is indexed.

postinst is in linuxdoc-tools 0.9.67ubuntu1.

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

set -e

case $1 in
    configure)
	# For info about why we do not currently use dh_installtex, see
        # #600013: tex-common:
	# dpkg-reconfigure doesn't work on packages calling update-texmf-config
	if [ "$DPKG_RUNNING_VERSION" ]; then
	    # If run under dpkg control call update-texmf-config, which
	    # will enable appropriate triggers
	    if which update-texmf-config 2>&1 > /dev/null; then
		update-texmf-config lsr
	    fi
	else
	    # Otherwise (e.g. on reconfigure) rebuild ls-R directly.
	    if which mktexlsr 2>&1 > /dev/null; then
		mktexlsr /usr/share/texmf
	    fi
	fi
	;;
    *)
esac

# Automatically added by dh_installcatalogs
if [ "$1" = "configure" ]; then
	rm -f /etc/sgml/linuxdoc-tools.cat
	for ordcat in /usr/share/linuxdoc-tools/linuxdoc-tools.catalog; do
		update-catalog --quiet --add /etc/sgml/linuxdoc-tools.cat ${ordcat}
	done
	update-catalog --quiet --add --super /etc/sgml/linuxdoc-tools.cat
fi
# End automatically added section