File: remove

package info (click to toggle)
elib 1.0-8
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 336 kB
  • ctags: 263
  • sloc: lisp: 2,378; makefile: 102; sh: 51
file content (21 lines) | stat: -rw-r--r-- 669 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
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/elib

# I don't think that remove scripts should have -e set, because
# that makes the package unremovable if the script fails.
# set -e 

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

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

    echo remove/elib: purging byte-compiled files for ${FLAVOR}
    rm -rf /usr/share/${FLAVOR}/site-lisp/elib/
    rm -f /etc/${FLAVOR}/site-start.d/35elib-startup.el
fi
exit 0