preinst is in jabber-querybot 0.1.0-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 | #!/bin/sh
set -e
# Can be removed, when 0.0.5.1-1 is migrated to stable.
case "$1" in
upgrade)
if dpkg --compare-versions "$2" lt 0.0.5.1-1; then
if [ /etc/jabber-querybot/Querymodule.pm -ef
/usr/share/doc/jabber-querybot/examples/Testbot.pm ];
then
rm /etc/jabber-querybot/Querymodule.pm
fi
fi
;;
esac
##
|