| Revision 1965,
698 bytes
checked in by iwaim, 16 years ago
(diff) |
|
git 1.7.1-1: add files
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # /usr/lib/emacsen-common/packages/remove/git |
|---|
| 3 | set -e |
|---|
| 4 | |
|---|
| 5 | FLAVOR=$1 |
|---|
| 6 | PACKAGE="git" |
|---|
| 7 | |
|---|
| 8 | if [ "X${FLAVOR}" = "X" ]; then |
|---|
| 9 | echo Need argument to determin FLAVOR of emacs; |
|---|
| 10 | exit 1 |
|---|
| 11 | fi |
|---|
| 12 | |
|---|
| 13 | if [ "X${PACKAGE}" = "X" ]; then |
|---|
| 14 | echo Internal error: need package name; |
|---|
| 15 | exit 1; |
|---|
| 16 | fi |
|---|
| 17 | |
|---|
| 18 | ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} |
|---|
| 19 | ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} |
|---|
| 20 | STARTDIR=/etc/${FLAVOR}/site-start.d |
|---|
| 21 | STARTFILE="$PACKAGE-init.el"; |
|---|
| 22 | |
|---|
| 23 | SITELISP=/usr/share/${FLAVOR}/site-lisp |
|---|
| 24 | |
|---|
| 25 | case "${FLAVOR}" in |
|---|
| 26 | emacs|emacs19|mule) |
|---|
| 27 | ;; |
|---|
| 28 | *) |
|---|
| 29 | echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..." |
|---|
| 30 | rm -rf ${ELCDIR} |
|---|
| 31 | rm -f ${STARTDIR}/55${STARTFILE}*; |
|---|
| 32 | echo " done." |
|---|
| 33 | ;; |
|---|
| 34 | esac |
|---|
| 35 | |
|---|
| 36 | exit 0; |
|---|
Note: See
TracBrowser
for help on using the repository browser.