#!/bin/sh set -e case "$1" in remove|deconfigure|upgrade) if command -v install-docs >/dev/null 2>&1; then echo -n "Unregistering DPKG documentation..." install-docs -r dpkg-internals || true echo "done." fi ;; esac