prerm is in dictionaries-common 1.20.5.
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 37 38 39 | #! /bin/sh
# prerm script for dictionaries-common
# Written by Rafael Laboissiere <rafael@debian.org> on
# Mon Oct 18 16:17:08 CEST 1999
set -e
case "$1" in
remove|deconfigure)
rm -f /etc/dictionaries-common/default.aff \
/etc/dictionaries-common/default.hash \
/etc/dictionaries-common/words \
/etc/dictionaries-common/ispell-default
rm -f /var/cache/dictionaries-common/*
if [ -L /usr/dict ]; then
rm /usr/dict
fi
;;
upgrade) ;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
esac
# Automatically added by dh_installemacsen
if [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ] ; then
/usr/lib/emacsen-common/emacs-package-remove --prerm dictionaries-common
fi
# End automatically added section
exit 0
# Local Variables:
# sh-basic-offset: 2
# sh-indentation: 2
# End:
|