#!/bin/sh -e

echo remove/custom: Handling removal of emacsen flavor $1

if [ "$1" = "emacs19" ]; then
  echo emacsen-common: purging byte-compiled files for $1
  test -d /usr/share/$1/site-lisp/custom/ && rm -rf /usr/share/$1/site-lisp/custom/
  test -e /etc/emacs19/site-start.d/20custom-init.el && rm -f /etc/emacs19/site-start.d/20custom-init.el
fi

exit 0
