#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/jde
# Ruud de Rooij <ruud@debian.org>  Sat, 20 Jun 1998 10:13:37 +0200
# Heavily based on Rob Browning's sample script distributed with the
# emacsen-common package

set -e

FLAVOR=$1

if [ ${FLAVOR} = emacs20 -o ${FLAVOR} = xemacs20 ]
then
  echo jde: Purging byte-compiled files for emacsen flavor ${FLAVOR}
  rm -f /usr/share/${FLAVOR}/site-lisp/jde/{compile.log,*.elc}
  rmdir /usr/share/${FLAVOR}/site-lisp/jde || true
else
  echo jde: Skipping removal of byte-compiled files for emacsen flavor ${FLAVOR}
fi
exit 0
