1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/golang-mode
FLAVOR=$1
PACKAGE=golang-mode
# A number of old emacs versions are not supported by upstream:
case $FLAVOR in
emacs|emacs19|emacs20|emacs21|emacs22|emacs23|xemacs21)
exit 0
;;
*)
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/share/info/golang-mode.info.gz
fi
echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
;;
esac
|