#! /bin/sh -e

ALTERNATIVES="appletviewer java javac javadoc jar jarsigner keytool"

case "$1" in
    remove|upgrade|deconfigure)
        if [ -x /usr/sbin/update-alternatives ]; then
            for alt in $ALTERNATIVES; do
                update-alternatives --remove ${alt} /usr/bin/${alt}
                update-alternatives --quiet --auto ${alt}
            done
        fi
    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

