#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/mew-beta
set -e

FLAVOR=$1
PACKAGE=mew-beta

if [ -z "${FLAVOR}" ]; then exit 0; fi
if [ "${FLAVOR}" = emacs ]; then exit 0; fi
if [ "${FLAVOR}" = emacs19 ]; then exit 0; fi
if [ "${FLAVOR}" = mule2 ]; then exit 0; fi

ELCDIR=/usr/share/${FLAVOR}/site-lisp/mew

echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
rm -rf ${ELCDIR}
echo " done."

exit 0
