source: projects/specs/trunk/u/uim/uim-el-remove.sh @ 1720

Revision 1720, 623 bytes checked in by iwaim, 10 years ago (diff)

uim 1.6.0-2

  • Property svn:executable set to *
Line 
1#!/bin/sh -e
2# /usr/lib/emacsen-common/packages/remove/uim-el
3
4FLAVOR=$1
5PACKAGE=uim-el
6STARTDIR=/etc/${FLAVOR}/site-start.d
7STARTFILE="${PACKAGE}-init.el"
8
9if [ "X${FLAVOR}" = "X" ]; then
10    echo Need argument to determin FLAVOR of emacs;
11    exit 1
12fi
13
14if [ "X${PACKAGE}" = "X" ]; then
15    echo Internal error: need package name;
16    exit 1;
17fi
18
19ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
20
21case "${FLAVOR}" in
22    emacs)
23    ;;
24    *)
25    echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
26    rm -rf ${ELCDIR}
27    rm -f ${STARTDIR}/95${STARTFILE}*
28    echo " done."
29    ;;
30esac
31
32exit 0
Note: See TracBrowser for help on using the repository browser.