#!/bin/sh set -e FLAVOR=$1 elc_dir=/usr/share/${FLAVOR}/site-lisp/cdargs/ echo remove/cdargs: Handling removal of emacsen flavor ${FLAVOR} echo remove/cdargs: purging byte-compiled files for ${FLAVOR} rm -f ${elc_dir}/*.elc if [ ${FLAVOR} != "emacs" ]; then rm -f ${elc_dir}/*.el fi if test -e ${elc_dir}; then rmdir --ignore-fail-on-non-empty ${elc_dir} fi exit 0;