#!/bin/sh

set -e

FLAVOR=$1

elc_dir=/usr/share/${FLAVOR}/site-lisp

echo remove/nasm-mode: Handling removal of emacsen flavor ${FLAVOR}

if [ ${FLAVOR} != emacs ]; then
    echo remove/nasm-mode: purging byte-compiled files for ${FLAVOR}

    rm -f ${elc_dir}/*.elc
fi
exit 0
