| Revision 1004,
767 bytes
checked in by iwaim, 16 years ago
(diff) |
|
update: navi2ch 2.0.0-2
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # /usr/lib/emacsen-common/packages/remove/navi2vh |
|---|
| 3 | # [ This particular script hasn't been tested either, so be careful. ] |
|---|
| 4 | set -e |
|---|
| 5 | |
|---|
| 6 | FLAVOR=$1 |
|---|
| 7 | PACKAGE="navi2ch" |
|---|
| 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 | STARTDIR=/etc/${FLAVOR}/site-start.d |
|---|
| 22 | STARTFILE="${PACKAGE}-init.el"; |
|---|
| 23 | |
|---|
| 24 | SITELISP=/usr/share/${FLAVOR}/site-lisp |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | case "${FLAVOR}" in |
|---|
| 28 | emacs) |
|---|
| 29 | ;; |
|---|
| 30 | *) |
|---|
| 31 | echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..." |
|---|
| 32 | rm -rf ${ELCDIR} |
|---|
| 33 | rm -f ${STARTDIR}/90${STARTFILE}*; |
|---|
| 34 | echo " done." |
|---|
| 35 | ;; |
|---|
| 36 | esac |
|---|
| 37 | |
|---|
| 38 | exit 0; |
|---|
Note: See
TracBrowser
for help on using the repository browser.