File: PVER-elisp.remove.in

package info (click to toggle)
python2.2 2.2.3dfsg-2sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 36,920 kB
  • ctags: 69,127
  • sloc: ansic: 219,839; python: 203,969; sh: 9,690; makefile: 3,468; perl: 3,454; lisp: 3,248; xml: 2,262; cpp: 106; sed: 2
file content (42 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (5)
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
37
38
39
40
41
42
#!/bin/sh
#
# emacsen-remove for @PVER@-elisp, Gregor Hoffleit <flight@debian.org>
#
# parts borrowed from gnus's emacsen-install,
#  by Manoj Srivastava <srivasta@tiamat.datasync.com>
#
# This file is free software under the terms of the GNU
# Public License, version 2 or higher.

set -e

FLAVOR=$1
PACKAGE="@PVER@-elisp"

if [ "X$FLAVOR" = "X" ]; then
    echo need argument to determine 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
    emacs20 | emacs21 | xemacs19 | xemacs20 | xemacs21)
	echo -n "remove/$PACKAGE: removing for $FLAVOR..."
	if [ -d $ELCDIR ]; then
	    rm -rf $ELCDIR
	fi
	echo "done."
	;;
    *)
	echo "remove/$PACKAGE: ignoring emacsen flavor $FLAVOR."
	;;
esac

exit 0