#!/bin/sh -eu

FLAVOR="$1"
echo "remove/aleph-emacs: Handling removal of emacsen flavor $FLAVOR"

if [ "$FLAVOR" != emacs ]
then
    echo "remove/aleph-emacs: purging byte-compiled files for ${FLAVOR}"
    rm -f "/usr/share/$FLAVOR/site-lisp/aleph-mode.elc"
fi
exit 0
