source: projects/specs/trunk/r/rdtool/rd-mode-remove.sh @ 1502

Revision 1502, 626 bytes checked in by iwaim, 14 years ago (diff)

rd-mode: add 0.6.22-2 files

  • Property svn:executable set to *
Line 
1#!/bin/sh -e
2# /usr/lib/emacsen-common/packages/remove/rd-mode
3
4FLAVOR=$1
5PACKAGE=rd-mode
6
7STARTDIR=/etc/${FLAVOR}/site-start.d
8STARTFILE="${PACKAGE}-init.el"
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
20ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
21
22case "${FLAVOR}" in
23    emacs)
24    ;;
25    *)
26    echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
27    rm -rf ${ELCDIR}
28    rm -f ${STARTDIR}/95${STARTFILE}*
29    echo " done."
30    ;;
31esac
32
33exit 0
Note: See TracBrowser for help on using the repository browser.