#!/bin/sh -e

FLAVOR=$1
PACKAGE=trr19

echo remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR}

case ${FLAVOR} in
    emacs|xemacs20)
        echo remove/${PACKAGE}: Ignoring emacsen flavor ${FLAVOR};;
    *)
        echo remove/${PACKAGE}: Purging byte-compiled files for ${FLAVOR}
        rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE};;
esac

exit 0
