summaryrefslogtreecommitdiff
path: root/debian/emacsVER.prerm
blob: bbc877e8018d2b530c785de758d4e7b6774959e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

MAJOR=@MAJOR_VERSION@
FLAVOR=@DEB_FLAVOR@

# update-alternatives on things that collide with xemacs, other editors
if [ "$1" != "upgrade" ]
then
  update-alternatives --remove emacs /usr/bin/${FLAVOR}-@X_SUPPORT@
  update-alternatives --remove editor /usr/bin/${FLAVOR}
fi

# emacsen-common registration.
/usr/lib/emacsen-common/emacs-remove ${FLAVOR}

#DEBHELPER#