File: emacsen-remove

package info (click to toggle)
ecb 2.40%2Bgit20140216-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,880 kB
  • ctags: 1,890
  • sloc: lisp: 28,150; makefile: 259; sh: 42
file content (18 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/ecb

FLAVOR=$1
PACKAGE=ecb

if [ ${FLAVOR} = emacs ]; then exit 0; fi
if [ ${FLAVOR} = emacs21 ]; then exit 0; fi
if [ ${FLAVOR} = emacs22 ]; then exit 0; fi

    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/info/ecb.info.gz
    fi

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