File: mmm-mode.emacsen-remove

package info (click to toggle)
mmm-mode 0.5.11-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: lisp: 3,712; makefile: 71; sh: 33
file content (18 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

FLAVOR="$1"

echo "install/mmm-mode: Handling removal of emacsen flavor ${FLAVOR}"

echo "install/mmm-mode: purging byte-compiled files for ${FLAVOR}"
rm -rf /usr/share/${FLAVOR}/site-lisp/mmm-mode/*.elc

# xemacs has symlinks for the source files, which need to go
# with the exception of cl-lib.el, which is ours
if [ "$FLAVOR" != "emacs" ]; then
    for i in /usr/share/${FLAVOR}/site-lisp/mmm-mode/*; do
        [ -L "$i"  ] && rm -f "$i";
    done
fi

exit 0;