This file is indexed.

postinst is in docbook-xsl 1.76.1+dfsg-1ubuntu1.

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
#! /bin/sh
# postinst script for docbook-xsl
#
# see: dh_installdeb(1)

set -e

# remove old cruft, just in case
if [ "$1" = configure ]; then

	# remove the old directory, config files now obsolete
	rm -rf /etc/sgml/docbook-xsl

	# upgrade will not replace the directory with a symlink
	# so test for the directory and remove it for 1.74.3
	if dpkg --compare-versions "$2" lt 1.74.3 && \
	   [ ! -h /usr/share/xml/docbook/stylesheet/nwalsh -a -d /usr/share/xml/docbook/stylesheet/nwalsh ]; then
		rm -rf /usr/share/xml/docbook/stylesheet/nwalsh
		ln -sf docbook-xsl /usr/share/xml/docbook/stylesheet/nwalsh
	fi
fi

# Automatically added by dh_installxmlcatalogs
if [ "$1" = "configure" ]; then
	update-xmlcatalog --add --type uri --id "http://docbook.sourceforge.net/release/xsl/" --package docbook-xsl --local /usr/share/xml/docbook/stylesheet/docbook-xsl/catalog.xml
	update-xmlcatalog --add --type system --id "http://docbook.sourceforge.net/release/xsl/" --package docbook-xsl --local /usr/share/xml/docbook/stylesheet/docbook-xsl/catalog.xml

	update-xmlcatalog --add --type uri --id "http://docbook.sourceforge.net/release/xsl/" --package docbook-xsl --root
	update-xmlcatalog --add --type system --id "http://docbook.sourceforge.net/release/xsl/" --package docbook-xsl --root

fi
# End automatically added section


exit 0