source: projects/specs/trunk/w/wnn7egg/wnn7egg-remove.sh @ 5586

Revision 5586, 804 bytes checked in by munepi, 12 years ago (diff)

updated wnn7egg

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