#!/bin/sh # postinst script for rmlint-doc # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ;; abort-upgrade) # Handle failed downgrade. if dpkg --compare-versions "$2" lt 2.8.0-1~; then DIR="/usr/share/doc/rmlint/html" if [ -d "${DIR}.downgrade" ]; then rm -f "$DIR" mv -f "${DIR}.downgrade" "$DIR" fi fi ;; abort-remove|abort-deconfigure) ;; *) echo "postinst 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