postrm is in yorick-data 2.2.01+dfsg-2.
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 | #!/bin/sh
set -e
case $1 in
remove)
if [ -e /usr/share/yorick ]; then
rm -Rf /usr/share/yorick
fi
;;
purge)
# remove dangling conffiles from previous version
# if Yorick is purged but they are still around
if [ -e /etc/yorick ] && \
[ "`dpkg-query -s yorick|grep Status`" = "Status: purge ok not-installed" ]; then
rm -Rf /etc/yorick
fi
if [ -e /etc/emacs/site-start.d/50yorick-auto.el ]; then
rm -f /etc/emacs/site-start.d/50yorick-auto.el
fi
;;
esac
|