rustc/debian/rust-mode.emacsen-remove
2015-02-13 15:10:11 +01:00

12 lines
222 B
Bash
Executable File

#!/bin/sh
set -e
FLAVOR=$1
PACKAGE=rust-mode
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
if [ ${FLAVOR} != emacs ]; then
echo remove/${PACKAGE}: Purging byte-compiled files for ${FLAVOR}
rm -rf "${ELCDIR}"
fi