This file is indexed.

postinst is in wesnoth 1:1.10.7-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
#!/bin/sh
# postinst script for wesnoth
set -e

if dpkg --compare-versions "$2" lt-nl 1:1.10.5-1; then
	# Replace directory with symlink. See BTS #688712
	if [ ! -L /usr/share/doc/wesnoth ] && \
	   [ -d /usr/share/doc/wesnoth ]; then
		if rmdir /usr/share/doc/wesnoth 2>/dev/null; then
			ln -sf wesnoth-1.10-data /usr/share/doc/wesnoth
		fi
	fi
fi



exit 0