#! /bin/bash -e
# /usr/lib/emacsen-common/packages/install/x-symbol


FLAVOR=$1
options="-batch -f batch-byte-compile"
el_dir=/usr/share/emacs/site-lisp/x-symbol/
elc_dir=/usr/share/${FLAVOR}/site-lisp/x-symbol/
el_files=`cd ${el_dir}; echo *.el`
el_path_list=`echo ${el_files} | perl -pe 's|^|${el_dir}|o'`
elc_path_list=`echo ${el_files} | perl -pe 's|^|${elc_dir}|o'`

echo remove/x-symbol: Handling remove of emacsen flavor ${FLAVOR}

if [ "${FLAVOR}" == emacs21 -o "${FLAVOR}" == xemacs21 ]
then
    echo remove/x-symbol: purging byte-compiled files for ${FLAVOR}
    rm -rf ${elc_dir}
    rm -f /etc/${FLAVOR}/site-start.d/42x-symbol.el
fi
exit 0
