File: emacs-remove

package info (click to toggle)
tm 7.106.0-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,172 kB
  • ctags: 1,369
  • sloc: lisp: 16,585; makefile: 314; sh: 297; ansic: 122
file content (26 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/bbdb

FLAVOR=$1
echo remove/tm: Handling removal of emacsen flavor ${FLAVOR}

case ${FLAVOR} in
emacs)
    echo "  nothing to do."
    exit 0
    ;;
xemacs*)
    echo "  under ${FLAVOR}'s administration - ignoring."
    exit 0
    ;;
esac

if test -x /usr/sbin/install-info-altdir; then
    echo remove/tm: remove Info links for ${FLAVOR}
    install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/tm-en.info.gz
fi

echo remove/tm: purging byte-compiled files for ${FLAVOR}
rm -rf /usr/share/${FLAVOR}/site-lisp/tm/

exit 0