#! /bin/sh
set -e

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

if [ ${FLAVOR} != emacs ] && [ -d ${ELCDIR} ]; then
    echo remove/nethack-el: purging byte-compiled files for ${FLAVOR}
    rm -rf ${ELCDIR}
fi
