prerm is in freeciv-client-gtk 2.4.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 | #!/bin/sh
set -e
update-alternatives --remove freeciv /usr/games/freeciv-gtk2
if [ -f /etc/ggz.modules ]; then
# If we are the only thing in ggz.modules, remove it. This will finally
# remove the pipuarts 'file not owned' warning.
if [ 1 -eq `grep -c '{prefix}' /etc/ggz.modules` ] && \
[ 1 -eq `grep -c 'CommandLine' /etc/ggz.modules` ]; then
rm -f /etc/ggz.modules
fi
# If no one else is using it, they can create it when they need it.
if [ 1 -eq `wc -l /etc/ggz.modules |cut -d ' ' -f 1` ]; then
rm -f /etc/ggz.modules
fi
fi
|