#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/bbdb

FLAVOR=$1
echo remove/tm: Handling removal of emacsen flavor ${FLAVOR}

case ${FLAVOR} in
emacs)
    echo "  nothing to do."
    exit 0
    ;;
xemacs*)
    echo "  under ${FLAVOR}'s administration - ignoring."
    exit 0
    ;;
esac

if test -x /usr/sbin/install-info-altdir; then
    echo remove/tm: remove Info links for ${FLAVOR}
    install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/tm-en.info.gz
fi

echo remove/tm: purging byte-compiled files for ${FLAVOR}
rm -rf /usr/share/${FLAVOR}/site-lisp/tm/

exit 0
