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