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

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

if [ ${FLAVOR} != emacs ]; then
  echo emacsen-common: purging byte-compiled files for ${FLAVOR}
  rm -f /usr/share/${FLAVOR}/site-lisp/hyperlatex/*.elc
  rm -rf /usr/share/${FLAVOR}/site-lisp/hyperlatex
fi
exit 0;
