uim-el-install.sh 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. STARTDIR=/etc/${FLAVOR}/site-start.d
  9. STARTFILE="${PACKAGE}-init.el"
  10. ELISP_FILES="*.el"
  11. BYTECOMPILE_FILES="uim.el"
  12. SOURCES=${ELISP_FILES}
  13. case "${FLAVOR}" in
  14. emacs)
  15. ;;
  16. *)
  17. echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
  18. install -m 755 -d ${ELCDIR}
  19. cd ${ELDIR}
  20. cp ${ELISP_FILES} ${ELCDIR}
  21. cd ${ELCDIR}
  22. ${FLAVOR} ${FLAGS} ${BYTECOMPILE_FILES} > ${ELCDIR}/CompilationLog 2>&1
  23. rm -f ${BYTECOMPILE_FILES}
  24. gzip -9 ${ELCDIR}/CompilationLog
  25. ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE}
  26. echo " done."
  27. ;;
  28. *)
  29. ;;
  30. esac
  31. exit 0 ;