#!/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}" ;; *) if test -x /usr/sbin/install-info-altdir; then echo remove/${PACKAGE}: removing Info links for ${FLAVOR} install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/dvc.info.gz fi echo "remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}" rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} ;; esac exit 0