postrm is in zsh-lovers 0.8.3-0ubuntu2.
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 | #!/bin/sh
# Filename: postrm
# Purpose: postrm script for package zsh-lovers
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Latest change: Sam Jun 18 19:34:53 CEST 2005 [mika]
################################################################################
set -e
TO_UNDIVERT="zsh.vim"
undivert_gen() {
DEXT=${3:-original}
dpkg-divert --remove --rename --package zsh-lovers \
--divert $2/$1.$DEXT $2/$1 #> /dev/null
}
case "$1" in
remove|purge)
for cmd in $TO_UNDIVERT; do
undivert_gen $cmd /usr/share/vim/syntax
done
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
exit 0
## END OF FILE #################################################################
|