#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/pod-mode

FLAVOR=$1
PACKAGE=pod-mode

FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile"

ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"


SOURCES="pod-mode.el"

case "${FLAVOR}" in
    emacs)
    ;;
    *) 
    install -m 755 -d ${ELCDIR}
    cd ${ELDIR}
    cp ${SOURCES} ${ELCDIR}
    FILES="${SOURCES}"
    cd ${ELCDIR}
    ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
    rm -f ${SOURCES}
    gzip -9 ${ELCDIR}/CompilationLog
    echo " done."
    ;;
esac

exit 0 ;
