File: emacsen-remove

package info (click to toggle)
select-xface 0.15-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 176 kB
  • sloc: lisp: 1,602; sh: 67; makefile: 34
file content (26 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/select-xface
set -e

FLAVOR=$1
PACKAGE="select-xface"

if [ "X${FLAVOR}" = "X" ]; then
  echo Need argument to determin FLAVOR of emacsen
  exit 1
fi
if [ "X${PACKAGE}" = "X" ]; then
  echo Internal error: need package nameen
  exit 1
fi

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

echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
rm -rf ${ELCDIR}
if [ -L "/etc/$FLAVOR/site-start.d/52$PACKAGE.el" ]; then
  rm -f "/etc/$FLAVOR/site-start.d/52$PACKAGE.el"
fi
echo " done."

exit 0