| 1 | #! /bin/sh |
| 2 | # /usr/lib/emacsen-common/packages/remove/flim |
| 3 | set -e |
| 4 | |
| 5 | FLAVOR=$1 |
| 6 | PACKAGE=flim |
| 7 | |
| 8 | case $FLAVOR in |
| 9 | *xemacs*|emacs2[0-3]|emacs1?|mule2) |
| 10 | exit 0 |
| 11 | ;; |
| 12 | esac |
| 13 | |
| 14 | ELCDIR=/usr/share/$FLAVOR/site-lisp/$PACKAGE |
| 15 | |
| 16 | echo "remove/$PACKAGE: purging byte-compiled files for $FLAVOR" |
| 17 | rm -rf "$ELCDIR" |
| 18 | if [ -L "/etc/$FLAVOR/site-start.d/50$PACKAGE.el" ]; then |
| 19 | rm -f "/etc/$FLAVOR/site-start.d/50$PACKAGE.el" |
| 20 | fi |
| 21 | exit 0 |