#! /bin/sh
set -e

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

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