ibus-el-install.sh 778 B

1234567891011121314151617181920212223242526272829303132333435
  1. #! /bin/sh -e
  2. # /usr/lib/emacsen-common/packages/install/ibus-el
  3. FLAVOR=$1
  4. PACKAGE=ibus-el
  5. FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile"
  6. ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
  7. ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"
  8. STARTDIR=/etc/${FLAVOR}/site-start.d
  9. STARTFILE="${PACKAGE}-init.el"
  10. SOURCES="ibus.el"
  11. case "${FLAVOR}" in
  12. emacs)
  13. ;;
  14. *)
  15. echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
  16. install -m 755 -d ${ELCDIR}
  17. cd ${ELDIR}
  18. cp *.el ${ELCDIR}
  19. FILES="${SOURCES}"
  20. cd ${ELCDIR}
  21. ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
  22. rm -f ${SOURCES}
  23. gzip -9 ${ELCDIR}/CompilationLog
  24. ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
  25. echo " done."
  26. ;;
  27. esac
  28. exit 0 ;