elisp-vcs/dvc/debian/dvc.emacsen-remove
2009-10-10 08:02:43 +02:00

30 lines
494 B
Bash

#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/dvc
FLAVOR=$1
PACKAGE=dvc
if [ "x$FLAVOR" = "x" ]; then
echo Need argument to determin FLAVOR of emacs;
exit 1
fi
if [ "x$PACKAGE" = "x" ]; then
echo Internal error: need package name;
exit 1;
fi
case "$FLAVOR" in
emacs | emacs20)
echo "Ignoring flavour ${FLAVOR}"
;;
*)
echo "remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}"
rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
;;
esac
exit 0