source: projects/specs/trunk/h/howm/howm-remove.sh @ 2432

Revision 2432, 658 bytes checked in by munepi, 13 years ago (diff)

updated howm-vl.spec: supported vine-default

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3FLAVOR=$1
4PACKAGE="howm"
5
6if [ "X${FLAVOR}" = "X" ]; then
7    echo Need argument to determin FLAVOR of emacs;
8    exit 1
9fi
10
11if [ "X${PACKAGE}" = "X" ]; then
12    echo Internal error: need package name;
13    exit 1;
14fi
15
16ELDIR=${EPREFIX}/usr/share/emacs/site-lisp/${PACKAGE}
17ELCDIR=${EPREFIX}/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
18STARTDIR=/etc/${FLAVOR}/site-start.d
19STARTFILE="${PACKAGE}-init.el";
20
21case "${FLAVOR}" in
22    emacs)
23        ;;
24
25    *)
26        echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
27
28        rm -rf ${ELCDIR}
29        rm -f ${STARTDIR}/50${STARTFILE}*;
30
31        echo " done."
32        ;;
33esac
34
35exit 0;
Note: See TracBrowser for help on using the repository browser.