#!/bin/bash -e
#
# Copyright(c)1998 Hidenobu NABETANI <nabe@debian.or.jp>
#
# License: GPL2
# This program is written for Debian GNU/Linux YaTeX package.

PACKAGE=yatex

FLAVOR=$1
case $FLAVOR in
    *xemacs*|emacs2[0123]|emacs19|mule2)
    exit 0
    ;;
esac

ELCDIR=/usr/share/$FLAVOR/site-lisp/$PACKAGE/
LOG=CompilationLog

if [ ${FLAVOR} != emacs ]
    then
	echo -n "remove/$PACKAGE: Removing for $FLAVOR..."
        rm -f $ELCDIR/{*.elc,$LOG.gz,*.el}
        rmdir $ELCDIR || true
        echo "done."
fi
exit 0

### Local Variables:
### mode: shell-script
### End:
