File: emacsen-remove

package info (click to toggle)
bbdb 2.34.cvs20020418-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,072 kB
  • ctags: 1,368
  • sloc: lisp: 12,409; sh: 4,683; makefile: 564; perl: 377
file content (36 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
#!/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
PACKAGE="bbdb"

if [ "X${FLAVOR}" = "X" ]; then
    echo Need argument to determin FLAVOR of emacs;
    exit 1
fi

if [ "X${PACKAGE}" = "X" ]; then
    echo Internal error: need package name;
    exit 1;
fi

ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}

case "${FLAVOR}" in
   emacs)
   echo "remove/${PACKAGE}: Ignoring Flavor ${FLAVOR} ..."
   ;;
   *)
   echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
   rm -rf ${ELCDIR}

   echo " done."
   ;;
esac

exit 0;