#!/bin/sh
#
# emacsen remove script for the Debian GNU/Linux octave package
#
# Written by Dirk Eddelbuettel <edd@debian.org>   
#
# Modified by Alastair McKinstry <mckinstry@debian.org>
# for the gramadoir Debian package

set -e 

# Canadian spelling ;-)
flavour=$1

package=gramadoir
destination=/usr/share/${flavour}/site-lisp/${package}

if [ ${flavour} != emacs ]
then
    echo remove/${package}: Purging byte-compiled files for flavour ${flavour}
    rm -f ${destination}/*.elc
else
    echo remove/${package}: Ignoring emacsen flavour ${flavour}
fi

exit 0;
