#!/bin/sh

set -e

MAJOR=24
FLAVOR=emacs24

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

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


