~ubuntu-branches/ubuntu/trusty/select-xface/trusty

« back to all changes in this revision

Viewing changes to debian/emacsen-remove

  • Committer: Bazaar Package Importer
  • Author(s): Takuo KITAME
  • Date: 2002-02-18 00:21:11 UTC
  • Revision ID: james.westby@ubuntu.com-20020218002111-v35ypoxvvkvowpzb
Tags: 0.15-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# /usr/lib/emacsen-common/packages/remove/foo
 
3
# [ This particular script hasn't been tested either, so be careful. ]
 
4
set -e
 
5
 
 
6
FLAVOR=$1
 
7
PACKAGE="select-xface"
 
8
 
 
9
if [ "X${FLAVOR}" = "X" ]; then
 
10
    echo Need argument to determin FLAVOR of emacs;
 
11
    exit 1
 
12
fi
 
13
 
 
14
if [ "X${PACKAGE}" = "X" ]; then
 
15
    echo Internal error: need package name;
 
16
    exit 1;
 
17
fi
 
18
 
 
19
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
 
20
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 
21
 
 
22
case "${FLAVOR}" in
 
23
        emacs)
 
24
        ;;
 
25
        *)
 
26
        echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
 
27
        rm -rf ${ELCDIR}
 
28
        echo " done."
 
29
        ;;
 
30
esac
 
31
 
 
32
exit 0;