File: emacsen-remove

package info (click to toggle)
select-xface 0.14-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 76 kB
  • ctags: 52
  • sloc: lisp: 572; sh: 65; makefile: 36
file content (35 lines) | stat: -rw-r--r-- 726 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
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/foo
# [ This particular script hasn't been tested either, so be careful. ]
set -e

FLAVOR=$1
PACKAGE="select-xface"

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}
STARTDIR=/etc/${FLAVOR}/site-start.d
STARTFILE="${PACKAGE}-init.el";

case "${FLAVOR}" in
	emacs)
	;;
	*)
	echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
	rm -rf ${ELCDIR}
	rm -f ${STARTDIR}/52${STARTFILE}*;
	echo " done."
	;;
esac

exit 0;