File: emacsen-remove

package info (click to toggle)
go-mode.el 3%3A1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 268 kB
  • ctags: 201
  • sloc: lisp: 1,705; sh: 48; makefile: 4
file content (21 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download
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