dpkg-doc.prerm 369 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. set -e
  3. if [ "$1" = remove -o "$1" = "upgrade" ]; then
  4. if [ -L /usr/doc/dpkg-doc ]; then
  5. rm -f /usr/doc/dpkg-doc
  6. fi
  7. fi
  8. case "$1" in
  9. remove|deconfigure|upgrade)
  10. if command -v install-docs >/dev/null 2>&1; then
  11. echo -n "Unregistering DPKG documentation..."
  12. install-docs -r dpkg-internals || true
  13. echo "done."
  14. fi
  15. ;;
  16. esac