File: python-elisp.remove

package info (click to toggle)
python 1.5.2-10potato11
  • links: PTS
  • area: main
  • in suites: potato
  • size: 13,340 kB
  • ctags: 36,680
  • sloc: ansic: 97,117; python: 88,266; makefile: 2,518; lisp: 2,363; sh: 882
file content (42 lines) | stat: -rw-r--r-- 862 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
#
# emacsen-remove for python-elisp, Gregor Hoffleit <aph@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="python-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/$FLAVOUR/site-lisp/$PACKAGE

case "$FLAVOR" in
    xemacs19 | emacs20 | 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