#! /bin/sh
set -e

#DEBHELPER#

case "$1" in
  remove|deconfigure|failed-upgrade)
    update-alternatives --auto firefox-homepage
    update-alternatives --remove firefox-homepage \
    /usr/share/ubuntu-artwork/home/kfirefox-index.html

    if which install-docs >/dev/null 2>&1; then
	  rm -rf /usr/share/ubuntu-artwork/home/images
	  rm -rf /usr/share/ubuntu-artwork/home/kubuntu.css
	  rm -rf /usr/share/ubuntu-artwork/home/locales-kubuntu
	  install-docs -r /usr/share/doc-base/kubuntu-systemdocs
	  rm -rf /usr/share/doc/kde/HTML/en/kubuntu
    fi


  ;;
esac
