source: projects/specs/trunk/g/git/git-remove.sh @ 1965

Revision 1965, 698 bytes checked in by iwaim, 14 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
3set -e
4
5FLAVOR=$1
6PACKAGE="git"
7
8if [ "X${FLAVOR}" = "X" ]; then
9    echo Need argument to determin FLAVOR of emacs;
10    exit 1
11fi
12
13if [ "X${PACKAGE}" = "X" ]; then
14    echo Internal error: need package name;
15    exit 1;
16fi
17
18ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
19ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
20STARTDIR=/etc/${FLAVOR}/site-start.d
21STARTFILE="$PACKAGE-init.el";
22
23SITELISP=/usr/share/${FLAVOR}/site-lisp
24
25case "${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        ;;
34esac
35
36exit 0;
Note: See TracBrowser for help on using the repository browser.