prerm is in emacs-calfw 1.6+git20170704-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 | #!/bin/sh
set -e
PACKAGE=emacs-calfw
case "$1" in
failed-upgrade)
if dpkg --compare-versions "$2" eq "1.2-1"; then
ELCDIR=/usr/share/emacs23/site-lisp/${PACKAGE}
if [ -d ${ELCDIR} ] ; then
rm -rf ${ELCDIR}/*
fi
fi
;;
esac
# Automatically added by dh_installemacsen
if [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-remove ] ; then
/usr/lib/emacsen-common/emacs-package-remove --prerm emacs-calfw
fi
# End automatically added section
|