uim-el-install.sh 656 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #! /bin/sh -e
  2. # /usr/lib/emacsen-common/packages/install/uim-el
  3. FLAVOR=$1
  4. PACKAGE=uim-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. ELISP_FILES="*.el"
  9. BYTECOMPILE_FILES="uim.el"
  10. SOURCES=${ELISP_FILES}
  11. case "${FLAVOR}" in
  12. emacs)
  13. ;;
  14. *)
  15. install -m 755 -d ${ELCDIR}
  16. cd ${ELDIR}
  17. cp ${ELISP_FILES} ${ELCDIR}
  18. cd ${ELCDIR}
  19. ${FLAVOR} ${FLAGS} ${BYTECOMPILE_FILES} > ${ELCDIR}/CompilationLog 2>&1
  20. rm -f ${BYTECOMPILE_FILES}
  21. gzip -9 ${ELCDIR}/CompilationLog
  22. echo " done."
  23. ;;
  24. *)
  25. ;;
  26. esac
  27. exit 0 ;