File: emacsen-remove

package info (click to toggle)
ddskk 17.1-4%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,760 kB
  • sloc: lisp: 30,155; ruby: 476; python: 414; makefile: 167; sh: 92
file content (28 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
# /usr/lib/emacsen-common/packages/remove/ddskk
set -e

FLAVOR=$1
PACKAGE=ddskk

if [ -z "${FLAVOR}" ]; then exit 1; fi

case $FLAVOR in
    emacs23|emacs22|emacs21|emacs20|emacs19|mule2|*xemacs*)
    exit 0
    ;;
esac

if test -x /usr/sbin/install-info-altdir; then
    echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
    install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/skk.info.gz
fi

ELCDIR=/usr/share/$FLAVOR/site-lisp/$PACKAGE

echo "remove/$PACKAGE: purging byte-compiled files for $FLAVOR"
rm -rf "$ELCDIR"
if [ -L "/etc/$FLAVOR/site-start.d/50$PACKAGE.el" ]; then
    rm -f "/etc/$FLAVOR/site-start.d/50$PACKAGE.el"
fi
exit 0