12345678910111213141516171819202122232425262728293031323334353637 |
- #! /bin/sh -e
- # /usr/lib/emacsen-common/packages/install/js2-mode
- FLAVOR=$1
- PACKAGE=js2-mode
- FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile"
- ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
- ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"
- STARTDIR=/etc/${FLAVOR}/site-start.d
- STARTFILE="${PACKAGE}-init.el"
- SOURCES="js2-mode.el js2-imenu-extras.el"
- case "${FLAVOR}" in
- emacs)
- ;;
- xemacs*)
- ;;
- *)
- echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
- install -m 755 -d ${ELCDIR}
- cd ${ELDIR}
- cp *.el ${ELCDIR}
- FILES="${SOURCES}"
- cd ${ELCDIR}
- ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
- rm -f ${SOURCES}
- gzip -9 ${ELCDIR}/CompilationLog
-
- ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
- echo " done."
- ;;
- esac
- exit 0 ;
|