#!/bin/sh # postrm script for rmlint-doc # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in upgrade) # Handle successful unpacking of downgrade. if dpkg --compare-versions "$2" lt 2.8.0-1~; then DIR="/usr/share/doc/rmlint/html" if [ -h "$DIR" ]; then rm -rf "${DIR}.downgrade" fi fi ;; purge|remove|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installdeb/13.3.4 dpkg-maintscript-helper symlink_to_dir /usr/share/doc/rmlint/html /usr/share/doc/rmlint-doc/html 2.8.0-1\~ -- "$@" # End automatically added section exit 0