#!/bin/sh -e

FLAVOR="$1"

echo "install/mmm-mode: Handling removal of emacsen flavor ${FLAVOR}"

if [ "${FLAVOR}" != "emacs" ]; then
  echo "install/mmm-mode: purging byte-compiled files for ${FLAVOR}"
  rm -rf /usr/share/${FLAVOR}/site-lisp/mmm-mode
fi

exit 0;
