source: projects/specs/trunk/w/wl/wl-remove.sh @ 2750

Revision 2750, 835 bytes checked in by munepi, 13 years ago (diff)

updated emacs, emacs24, wl, yatex, auctex, IIIMECF; added wl-beta; supported new vine-default

Line 
1#!/bin/sh
2# /usr/lib/emacsen-common/packages/remove/wl
3# [ This particular script hasn't been tested either, so be careful. ]
4
5set -e
6
7FLAVOR=$1
8PACKAGE="wl"
9
10if [ "X${FLAVOR}" = "X" ]; then
11    echo Need argument to determin FLAVOR of emacs;
12    exit 1
13fi
14
15if [ "X${PACKAGE}" = "X" ]; then
16    echo Internal error: need package name;
17    exit 1;
18fi
19
20ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
21ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
22STARTDIR=/etc/${FLAVOR}/site-start.d
23STARTFILE="${PACKAGE}-init.el";
24
25SITELISP=/usr/share/${FLAVOR}/site-lisp
26
27PIXMAPDIR=/usr/share/${FLAVOR}/etc/wl
28
29case "${FLAVOR}" in
30
31    emacs|emacs19)
32
33        ;;
34
35    *)
36
37        echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
38        rm -rf ${ELCDIR}
39        rm -rf ${PIXMAPDIR}
40        rm -f ${STARTDIR}/55${STARTFILE}*
41        echo " done."
42
43        ;;
44esac
45
46exit 0;
Note: See TracBrowser for help on using the repository browser.