File: remove

package info (click to toggle)
bbdb 2.00-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 852 kB
  • ctags: 520
  • sloc: lisp: 7,447; perl: 377; makefile: 328; sh: 114
file content (26 lines) | stat: -rw-r--r-- 838 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
22
23
24
25
26
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/bbdb

# 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/bbdb: Handling removal of emacsen flavor ${FLAVOR}

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

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

	if [ -d /usr/share/${FLAVOR}/etc/bbdb ]; then
		rm -rf /usr/share/${FLAVOR}/etc/bbdb
		rmdir /usr/share/${FLAVOR}/etc/ > /dev/null 2>&1
    fi
fi
exit 0