This file is indexed.

postrm is in wesnoth-1.10-core 1:1.10.2-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
#!/bin/sh
# postrm script for wesnoth-1.10-core
# Copyright 2010 by Gerfried Fuchs <rhonda@debian.at>
# Licensed under WTFPLv2

set -e

divert_oldfiles()
{
	# programs
	for i in wesnoth wesnoth-nolog wesnoth-smallgui wesnoth-editor; do 
		dpkg-divert --remove --package wesnoth-1.10-core \
			--rename /usr/games/$i 2>/dev/null || true
	done

	# manpages
	for i in ca_ES@valencia cs da de en_GB es et fi fr gl hu it ja \
		lt nl pl sk sr sr@latin sv tr zh_CN zh_TW; do
		dpkg-divert --remove --package wesnoth-1.10-core \
			--rename /usr/share/man/$i/man6/wesnoth.6.gz 2>/dev/null || true
	done
}


case "$1" in
	purge|remove)
		divert_oldfiles
	;;
esac

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


exit 0