#! /bin/sh -e # /usr/lib/emacsen-common/packages/install/cylc-el # Written by Jim Van Zandt , borrowing heavily # from the install scripts for gettext by Santiago Vila # and octave by Dirk Eddelbuettel . # Adapted for cylc by Alastair McKinstry FLAVOR=$1 PACKAGE=cylc if [ ${FLAVOR} = emacs ]; then exit 0; fi echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} FLAGS=" -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} ELRELDIR=../../../emacs/site-lisp/${PACKAGE} install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} ln -sf ${ELRELDIR}/*.el . cat << EOF > path.el (debian-pkg-add-load-path-item ".") (setq byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f path.el exit 0