#!/bin/sh
set -e

FLAVOR=$1
PACKAGE=cmake-data
ELCFILE=cmake-mode.elc

if [ ${FLAVOR} != emacs ]; then
  echo remove/${PACKAGE}: Purging byte-compiled files for ${FLAVOR}
  rm -f /usr/share/${FLAVOR}/site-lisp/${ELCFILE}
fi