This file is indexed.

postrm is in mirrormagic 2.0.2.0deb1-12.

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


if [ "$1" = "purge" ]; then
# clean up any overhanging RAY files and high scores from v1.3
    if [ -d /var/lib/games/mirrormagic ]; then
	rm -rf /var/lib/games/mirrormagic/*
	rmdir -p --ignore-fail-on-non-empty /var/lib/games/mirrormagic || true
    fi
# remove v2 high scores
    if [ -d /var/games/mirrormagic ]; then
	rm -rf /var/games/mirrormagic/*
	rmdir -p --ignore-fail-on-non-empty /var/games/mirrormagic || true
    fi
fi

# Automatically added by dh_installmenu
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section