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
case "$1" in
upgrade)
if dpkg --compare-versions "$2" '<<' 0.7.2-2.1~ ; then
# libmcs-doc installs symlinks in /usr/share/doc/libmcs-dev.
# If the old libmcs-dev -> libmcs1 symlink exists, the links
# end up in the wrong directory and prevent removal of
# /usr/share/doc/libmcs1 on purging libmcs1. - This is the
# reason for removing them here instead of in libmcs-doc
# maintainerscripts.
test ! -L /usr/share/doc/libmcs1/html || \
rm /usr/share/doc/libmcs1/html
test ! -L /usr/share/doc/libmcs1/refman.pdf.gz ||
rm /usr/share/doc/libmcs1/refman.pdf.gz
fi
;;
esac
#DEBHELPER#
|